/**
 * City of Hats Network Scanner - Dashboard Styles
 * Dark theme styling for security dashboard
 * 
 * @package CityOfHats
 * @version 1.0.0
 */

/* ===== GLOBAL DASHBOARD STYLES ===== */
.cityofhats-dashboard {
    background: #1a1a1a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
    border-radius: 12px;
    min-height: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cityofhats-dashboard * {
    box-sizing: border-box;
}

/* ===== SCANNER STATUS BANNER ===== */
.scanner-status-banner {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid #00d4aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.scanner-status-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.2);
}

.scanner-status-banner.active {
    border-left-color: #48bb78;
}

.scanner-status-banner.inactive {
    border-left-color: #f56565;
    background: linear-gradient(135deg, #742a2a 0%, #9c4221 100%);
}

.scanner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.scanner-header h3 {
    margin: 0;
    color: #00d4aa;
    font-size: 20px;
    font-weight: 600;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.active {
    background: #48bb78;
    color: white;
}

.status.inactive {
    background: #f56565;
    color: white;
}

.scanner-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #a0aec0;
}

.scanner-actions {
    display: flex;
    gap: 10px;
}

.btn-refresh, .btn-view-all, .btn-download-agent {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-refresh {
    background: #4299e1;
    color: white;
}

.btn-refresh:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.btn-view-all {
    background: transparent;
    color: #00d4aa;
    border: 1px solid #00d4aa;
}

.btn-view-all:hover {
    background: #00d4aa;
    color: #1a1a1a;
}

.btn-download-agent {
    background: #9f7aea;
    color: white;
}

.btn-download-agent:hover {
    background: #805ad5;
    color: white;
    transform: translateY(-1px);
}

/* ===== MAIN DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.metric-card {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4aa, #4299e1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: #00d4aa;
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.15);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card h4 {
    margin: 0 0 20px 0;
    color: #00d4aa;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== RISK SCORE GAUGE ===== */
.gauge-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.gauge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #48bb78 0deg 72deg,
        #ed8936 72deg 144deg,
        #f56565 144deg 216deg,
        #e53e3e 216deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gauge::before {
    content: '';
    width: 75px;
    height: 75px;
    background: #2d3748;
    border-radius: 50%;
    position: absolute;
}

.gauge .score {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    z-index: 1;
}

.target {
    text-align: center;
    font-size: 14px;
    color: #a0aec0;
    margin-bottom: 10px;
}

.risk-trend {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

.risk-trend.increasing {
    color: #f56565;
}

.risk-trend.decreasing {
    color: #48bb78;
}

/* ===== TREND CHART ===== */
.trend-container {
    margin: 15px 0;
    text-align: center;
}

.trend-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.trend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trend-item .label {
    font-size: 12px;
    color: #a0aec0;
}

.trend-item .value {
    font-size: 14px;
    font-weight: 600;
}

.trend-item .value.increasing {
    color: #f56565;
}

.trend-item .value.decreasing {
    color: #48bb78;
}

/* ===== CRITICAL ALERTS ===== */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.alert-item.critical {
    border-left-color: #e53e3e;
}

.alert-item.high {
    border-left-color: #f56565;
}

.alert-item.warning {
    border-left-color: #ed8936;
}

.alert-icon {
    font-size: 16px;
}

.alert-text {
    flex: 1;
    font-size: 14px;
}

.alert-actions {
    margin-top: 15px;
    text-align: center;
}

.alert-link {
    color: #00d4aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.alert-link:hover {
    color: #00b894;
}

/* ===== ASSET HEALTH & SCAN STATUS ===== */
.asset-stats, .scan-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: #a0aec0;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.stat-value.online {
    color: #48bb78;
}

.stat-value.critical {
    color: #e53e3e;
}

.stat-value.warning {
    color: #ed8936;
}

.stat-value.active {
    color: #4299e1;
}

.stat-value.queued {
    color: #ed8936;
}

.stat-value.failed {
    color: #f56565;
}

.asset-health-bar {
    height: 8px;
    background: #4a5568;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-top: 15px;
}

.health-segment.online {
    background: #48bb78;
}

.health-segment.offline {
    background: #f56565;
}

/* ===== COMPLIANCE STATUS ===== */
.compliance-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.compliance-item.good {
    border-left-color: #48bb78;
}

.compliance-item.warning {
    border-left-color: #ed8936;
}

.compliance-item.critical {
    border-left-color: #e53e3e;
}

.framework {
    font-weight: 600;
    font-size: 13px;
}

.score {
    font-weight: 700;
    font-size: 14px;
}

.status-icon {
    font-size: 16px;
}

/* ===== VULNERABILITY BREAKDOWN (REMOVED) ===== */
/* Commented out as this widget was removed from the dashboard
.vulnerability-breakdown {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.vulnerability-breakdown:hover {
    transform: translateY(-2px);
    border-color: #00d4aa;
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.1);
}

.vuln-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vuln-header h4 {
    margin: 0;
    color: #00d4aa;
    font-size: 18px;
    font-weight: 600;
}

.vuln-total {
    font-size: 16px;
    font-weight: 600;
    color: #a0aec0;
}

.vuln-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.vuln-stat {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-top: 3px solid transparent;
}

.vuln-stat.critical {
    border-top-color: #e53e3e;
}

.vuln-stat.high {
    border-top-color: #f56565;
}

.vuln-stat.medium {
    border-top-color: #ed8936;
}

.vuln-stat.low {
    border-top-color: #48bb78;
}

.vuln-count {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.vuln-label {
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vuln-bar {
    height: 12px;
    background: #4a5568;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar-segment {
    transition: all 0.3s ease;
}

.bar-segment:hover {
    opacity: 0.8;
}

.bar-segment.critical {
    background: linear-gradient(90deg, #e53e3e, #fc8181);
}

.bar-segment.high {
    background: linear-gradient(90deg, #f56565, #feb2b2);
}

.bar-segment.medium {
    background: linear-gradient(90deg, #ed8936, #fbb6ce);
}

.bar-segment.low {
    background: linear-gradient(90deg, #48bb78, #9ae6b4);
}

.top-cves {
    margin-top: 20px;
}

.top-cves h5 {
    margin: 0 0 10px 0;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 600;
}

.cve-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cve-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid transparent;
    font-size: 13px;
}

.cve-item.critical {
    border-left-color: #e53e3e;
}

.cve-item.high {
    border-left-color: #f56565;
}

.cve-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #00d4aa;
}

.cve-assets {
    color: #a0aec0;
    font-size: 12px;
}

.vuln-actions {
    margin-top: 20px;
    text-align: center;
}

.view-all-link {
    color: #00d4aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #00b894;
    transform: translateX(3px);
}
*/

/* ===== RECENT ACTIVITY SECTION ===== */
.recent-activity-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Simplified version without Network Segments */
.recent-activity-section-simplified {
    margin-bottom: 25px;
}

.recent-activity-section-simplified .activity-card.full-width {
    width: 100%;
}

.activity-card, .network-card {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.activity-card:hover, .network-card:hover {
    transform: translateY(-2px);
    border-color: #00d4aa;
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.1);
}

.activity-card h4, .network-card h4 {
    margin: 0 0 20px 0;
    color: #00d4aa;
    font-size: 16px;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.activity-item.scan {
    border-left-color: #4299e1;
}

.activity-item.vulnerability {
    border-left-color: #ed8936;
}

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-message {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.activity-details {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #718096;
}

.no-activity {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 20px;
}

/* ===== NETWORK OVERVIEW ===== */
.network-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.network-segment {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.network-segment:hover {
    background: rgba(255, 255, 255, 0.08);
}

.network-segment.monitored {
    border-left-color: #48bb78;
}

.network-segment.secure {
    border-left-color: #4299e1;
}

.network-segment.scanning {
    border-left-color: #ed8936;
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.segment-name {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
}

.segment-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.segment-status.monitored {
    background: #48bb78;
    color: white;
}

.segment-status.secure {
    background: #4299e1;
    color: white;
}

.segment-status.scanning {
    background: #ed8936;
    color: white;
}

.segment-assets {
    font-size: 12px;
    color: #a0aec0;
}

/* ===== NETWORK TOPOLOGY PREVIEW ===== */
.network-topology-preview {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.network-topology-preview:hover {
    transform: translateY(-2px);
    border-color: #00d4aa;
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.1);
}

.network-topology-preview h4 {
    margin: 0 0 20px 0;
    color: #00d4aa;
    font-size: 16px;
    font-weight: 600;
}

.topology-container {
    position: relative;
    height: 120px;
}

.topology-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.network-node {
    position: absolute;
    width: 60px;
    height: 25px;
    background: #4a5568;
    border: 2px solid #00d4aa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.network-node:hover {
    background: #00d4aa;
    color: #1a1a1a;
    transform: scale(1.05);
}

.network-node.dmz {
    top: 10px;
    left: 10px;
}

.network-node.internal {
    top: 10px;
    left: 120px;
}

.network-node.management {
    top: 60px;
    left: 120px;
}

.network-node.external {
    top: 10px;
    left: 230px;
}

.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== LOADING & ERROR STATES ===== */
.loading-container, .error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #1a1a1a;
    border-radius: 12px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #00d4aa;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #4a5568;
    border-top: 4px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    color: #f56565;
}

.error-message h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.error-message p {
    margin: 0 0 20px 0;
    color: #a0aec0;
}

.retry-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

/* ===== NOTIFICATIONS ===== */
.dashboard-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.dashboard-notification.success {
    background: #48bb78;
}

.dashboard-notification.error {
    background: #f56565;
}

.dashboard-notification.info {
    background: #4299e1;
}

.dashboard-notification.warning {
    background: #ffc107;
    color: #212529;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== TOOLTIPS ===== */
.dashboard-tooltip {
    position: absolute;
    background: #2d3748;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a5568;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-activity-section {
        grid-template-columns: 1fr;
    }
    
    .scan-job-panel.compact .form-row-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .scan-job-panel.compact .form-row-group:nth-child(2) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cityofhats-dashboard {
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .scan-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .scan-job-panel.compact .scan-capabilities {
        width: 100%;
        justify-content: center;
    }
    
    .scan-job-panel.compact .btn-start-scan {
        width: 100%;
    }
    
    .metric-card {
        padding: 20px;
    }
    
    .scanner-status-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .scanner-actions {
        align-self: stretch;
    }
    
    .vuln-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gauge {
        width: 80px;
        height: 80px;
    }
    
    .gauge::before {
        width: 60px;
        height: 60px;
    }
    
    .gauge .score {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cityofhats-dashboard {
        padding: 10px;
    }
    
    .metric-card {
        padding: 15px;
    }
    
    .scanner-status-banner {
        padding: 15px;
    }
    
    .vuln-summary {
        grid-template-columns: 1fr;
    }
    
    .scanner-details {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn-refresh:focus,
.btn-view-all:focus,
.btn-download-agent:focus,
.retry-btn:focus {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cityofhats-dashboard {
        border: 2px solid #ffffff;
    }
    
    .metric-card {
        border: 2px solid #ffffff;
    }
}

/* Agent Monitor Styles */
.agent-monitor-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #00d4aa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.1);
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

.agent-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #00d4aa;
}

.agent-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-status-badge.online {
    background: rgba(0, 255, 127, 0.2);
    color: #00ff7f;
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.agent-status-badge.offline {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.agent-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.agent-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.agent-stat.online .stat-value {
    color: #00ff7f;
}

.agent-stat.offline .stat-value {
    color: #dc3545;
}

.agent-stat .stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #00d4aa;
}

.agent-stat .stat-label {
    font-size: 0.75em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.agent-list {
    margin-top: 20px;
}

.agent-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.agent-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #00d4aa;
    transform: translateX(5px);
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-family: 'Courier New', monospace;
    color: #00d4aa;
    font-size: 0.9em;
}

.agent-time {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #00ff7f;
}

.no-agents-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-agents-message .btn-download {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #00d4aa;
    color: #1a1a2e;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-agents-message .btn-download:hover {
    background: #00ff7f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

/* Scan Job Panel Styles */
.scan-job-panel {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #00d4aa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.1);
}

/* Compact Scanner Control Layout - v2 */
.scan-job-panel.compact {
    padding: 15px 20px !important;
}

.scan-job-panel.compact .scan-create-form {
    gap: 10px !important;
}

.scan-job-panel.compact .form-row-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    align-items: start !important;
    margin-bottom: 10px !important;
}

.scan-job-panel.compact .scan-create-form > .form-row-group:nth-child(2) {
    grid-template-columns: 2fr 1fr 1fr !important;
}

/* Hide old form-row styles in compact mode */
.scan-job-panel.compact .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.scan-job-panel.compact .form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scan-job-panel.compact .form-field.flex-2 {
    grid-column: span 1;
}

.scan-job-panel.compact .form-field label {
    color: #888;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scan-job-panel.compact .form-field input,
.scan-job-panel.compact .form-field select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    height: 36px;
}

.scan-job-panel.compact .form-field input:focus,
.scan-job-panel.compact .form-field select:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.2);
}

.scan-job-panel.compact .scan-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(0, 212, 170, 0.1) !important;
}

.scan-job-panel.compact .scan-capabilities {
    margin: 0;
    padding: 8px 12px;
    background: transparent;
    border: none;
    flex: 1;
}

.scan-job-panel.compact .btn-start-scan {
    padding: 10px 24px;
    font-size: 1em;
}

.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

.scan-header h3 {
    color: #00d4aa;
    margin: 0;
    font-size: 1.3em;
}

.btn-view-jobs {
    background: rgba(0, 212, 170, 0.1);
    color: #00d4aa;
    border: 1px solid #00d4aa;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-view-jobs:hover {
    background: #00d4aa;
    color: #1a1a2e;
}

.scan-create-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row label {
    color: #888;
    font-size: 0.9em;
    font-weight: 600;
}

.form-row input,
.form-row select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95em;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.2);
}

.form-row small {
    color: #666;
    font-size: 0.85em;
    margin-top: 2px;
}

.scan-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-start-scan {
    background: linear-gradient(135deg, #00d4aa, #00ff7f);
    color: #1a1a2e;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-start-scan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.5);
}

/* Scan Capabilities Display */
.scan-capabilities {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 212, 170, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    flex-wrap: wrap;
}

.scan-capabilities .capability {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.scan-capabilities .capability.enabled {
    background: rgba(0, 212, 170, 0.1);
    color: #00d4aa;
    border-color: rgba(0, 212, 170, 0.3);
    font-weight: 600;
}

/* Active Jobs List */
#active-jobs-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 170, 0.2);
}

#active-jobs-list h4 {
    color: #00d4aa;
    margin-bottom: 15px;
}

.jobs-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-row {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.job-row:hover {
    background: rgba(0, 212, 170, 0.05);
}

.job-info strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.job-id {
    color: #666;
    font-size: 0.85em;
    font-family: monospace;
}

.job-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-badge.queued {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status-badge.running {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
}

.status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-badge.failed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.progress-bar {
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00ff7f);
    transition: width 0.3s ease;
}

.job-actions button {
    background: rgba(0, 212, 170, 0.1);
    color: #00d4aa;
    border: 1px solid #00d4aa;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.job-actions button:hover {
    background: #00d4aa;
    color: #1a1a2e;
}

.job-time {
    color: #666;
    font-size: 0.85em;
}

.no-jobs {
    text-align: center;
    color: #666;
    padding: 30px;
    font-style: italic;
}

.loading {
    text-align: center;
    color: #00d4aa;
    padding: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =====================================================
   DISCOVERED ASSETS WIDGET STYLES
   ===================================================== */

.metric-card.discovered-assets {
    grid-column: span 2;
}

.assets-container {
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.assets-container::-webkit-scrollbar {
    width: 6px;
}

.assets-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.assets-container::-webkit-scrollbar-thumb {
    background: rgba(138, 155, 168, 0.3);
    border-radius: 3px;
}

.assets-container::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 155, 168, 0.5);
}

.assets-scroll {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #00d4aa;
    transition: all 0.3s ease;
}

.asset-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.1);
}

.asset-ip {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #00d4aa;
    min-width: 120px;
    font-size: 14px;
}

.asset-hostname {
    flex: 1;
    color: #8a9ba8;
    font-size: 13px;
    margin: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #8a9ba8;
    text-transform: uppercase;
    font-weight: 600;
}

.asset-type.server {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.asset-type.workstation {
    background: rgba(138, 155, 168, 0.15);
    color: #8a9ba8;
    border: 1px solid rgba(138, 155, 168, 0.3);
}

.asset-type.router {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.asset-type.unknown {
    background: rgba(90, 107, 122, 0.15);
    color: #5a6b7a;
    border: 1px solid rgba(90, 107, 122, 0.3);
}

.asset-more {
    text-align: center;
    color: #8a9ba8;
    font-style: italic;
    padding: 10px;
    font-size: 13px;
    opacity: 0.7;
}

.no-assets {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    min-height: 120px;
}

.no-assets p {
    color: #8a9ba8;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.no-assets small {
    color: #5a6b7a;
    margin-top: 8px;
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.asset-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-discovery {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-discovery:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-discovery:active {
    transform: translateY(0);
}

.asset-count {
    color: #8a9ba8;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.loading-assets {
    text-align: center;
    color: #8a9ba8;
    padding: 40px;
    font-style: italic;
    opacity: 0.7;
}
