/* Skyfort Client Portal - CSS */

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --success: #00d26a;
    --warning: #ffc107;
    --danger: #ff4757;
    --info: #3498db;
    --text: #ffffff;
    --text-muted: #8892b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--highlight);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.shield {
    font-size: 2rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-info {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Maturity Score */
.maturity-score {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.maturity-score h2 {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 50%;
    width: 200px;
    height: 200px;
    border: 5px solid var(--success);
    box-shadow: 0 0 30px rgba(0, 210, 106, 0.3);
}

.score-value {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--success);
}

.score-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.score-item {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.score-item .label {
    color: var(--text-muted);
}

.score-item .bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.score-item .fill {
    background: linear-gradient(90deg, var(--info), var(--success));
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.score-item .value {
    font-weight: bold;
    color: var(--success);
}

/* KPIs */
.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kpi-card.success { border-top: 3px solid var(--success); }
.kpi-card.warning { border-top: 3px solid var(--warning); }
.kpi-card.danger { border-top: 3px solid var(--danger); }
.kpi-card.info { border-top: 3px solid var(--info); }

.kpi-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.kpi-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.kpi-trend {
    font-size: 0.8rem;
    color: var(--success);
}

.kpi-trend.down {
    color: var(--danger);
}

/* Charts */
.charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.chart-card canvas {
    max-height: 300px;
}

/* Baseline */
.baseline {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.baseline h2 {
    margin-bottom: 1.5rem;
}

.baseline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.baseline-item {
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.baseline-item.implemented {
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid var(--success);
}

.baseline-item.partial {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
}

.baseline-item.pending {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--danger);
}

.baseline-item .status {
    font-size: 1.5rem;
}

.baseline-item .framework {
    font-weight: bold;
}

.baseline-item .coverage {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Recent Fixes Table */
.recent-fixes {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-fixes h2 {
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.critical { background: var(--danger); }
.badge.high { background: #ff6b6b; }
.badge.medium { background: var(--warning); color: #000; }
.badge.low { background: var(--info); }
.badge.success { background: var(--success); }

/* Vulnerabilities Comparison */
.vulnerabilities-comparison {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vulnerabilities-comparison h2 {
    margin-bottom: 1.5rem;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.before-card, .after-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.before-card {
    border: 2px solid var(--danger);
}

.after-card {
    border: 2px solid var(--success);
}

.before-card h4, .after-card h4 {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.vuln-count {
    margin-bottom: 1rem;
}

.vuln-count .count {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}

.before-card .count { color: var(--danger); }
.after-card .count { color: var(--success); }

.vuln-count .label {
    color: var(--text-muted);
}

.vuln-list {
    list-style: none;
    text-align: left;
}

.vuln-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vuln-list li span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.vuln-list li span.critical { background: var(--danger); }
.vuln-list li span.high { background: #ff6b6b; }
.vuln-list li span.medium { background: var(--warning); }
.vuln-list li span.low { background: var(--info); }

.arrow {
    font-size: 3rem;
    color: var(--success);
}

.improvement-card {
    background: linear-gradient(135deg, var(--success), #00b894);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: #000;
}

.improvement-card h4 {
    margin-bottom: 1rem;
}

.improvement-value {
    font-size: 4rem;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px 15px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon.small {
    width: 30px;
    height: 30px;
    color: var(--highlight);
}

.company-info p, .contact p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .baseline-grid { grid-template-columns: repeat(2, 1fr); }
    .comparison-cards { grid-template-columns: 1fr 1fr; }
    .arrow, .improvement-card { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .maturity-score { grid-template-columns: 1fr; }
    .charts { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; gap: 1rem; }
}

/* Filter Controls */
.nav-controls {
    display: flex;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 250px;
}

.filter-group select:hover {
    border-color: var(--highlight);
}

.filter-group select option {
    background: var(--primary);
    color: var(--text);
}

/* Asset Info Bar */
.asset-info-bar {
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.1), rgba(15, 52, 96, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.asset-icon {
    font-size: 2rem;
}

.asset-text strong {
    font-size: 1.2rem;
    display: block;
}

.asset-text span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.asset-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Hosts Section */
.hosts-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hosts-section h2 {
    margin-bottom: 1.5rem;
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.host-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.host-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.host-card.success { border-color: var(--success); }
.host-card.warning { border-color: var(--warning); }
.host-card.danger { border-color: var(--danger); }

.host-icon {
    font-size: 2rem;
    grid-row: 1 / 3;
}

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

.host-info strong {
    font-size: 1.1rem;
}

.host-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.host-alerts {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

.host-status {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Host Badge in Table */
.host-badge {
    background: rgba(52, 152, 219, 0.2);
    color: var(--info);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Scope Labels */
h2 span, h3 span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

/* Non-Conformities Section */
.non-conformities {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.non-conformities h2 {
    margin-bottom: 1.5rem;
}

.nc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.nc-host-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.2), rgba(52, 152, 219, 0.2));
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nc-host-filter span {
    font-size: 0.95rem;
}

.nc-host-filter button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.nc-host-filter button:hover {
    background: var(--highlight);
}

.nc-results-count {
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.15), rgba(52, 152, 219, 0.15));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    border-left: 3px solid var(--highlight);
}

.nc-results-count span {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--highlight);
}

.nc-filters .filter-group {
    flex-wrap: wrap;
}

.nc-filters label {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--highlight);
    border-color: var(--highlight);
}

.filter-btn.critical:hover, .filter-btn.critical.active { background: var(--danger); border-color: var(--danger); }
.filter-btn.high:hover, .filter-btn.high.active { background: #ff6b6b; border-color: #ff6b6b; }
.filter-btn.medium:hover, .filter-btn.medium.active { background: var(--warning); border-color: var(--warning); color: #000; }
.filter-btn.low:hover, .filter-btn.low.active { background: var(--success); border-color: var(--success); }
.filter-btn.cis:hover { border-color: #3498db; }
.filter-btn.nist:hover { border-color: #9b59b6; }
.filter-btn.pci:hover { border-color: #e74c3c; }
.filter-btn.gdpr:hover { border-color: #1abc9c; }

.nc-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.counter-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border-top: 3px solid;
}

.counter-card.critical { border-color: var(--danger); }
.counter-card.high { border-color: #ff6b6b; }
.counter-card.medium { border-color: var(--warning); }
.counter-card.low { border-color: var(--success); }

.counter-card .count {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.counter-card.critical .count { color: var(--danger); }
.counter-card.high .count { color: #ff6b6b; }
.counter-card.medium .count { color: var(--warning); }
.counter-card.low .count { color: var(--success); }

.counter-card .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.nc-severity-group {
    margin-bottom: 1.5rem;
}

.nc-severity-group h3 {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.nc-severity-group.critical h3 { border-left: 4px solid var(--danger); }
.nc-severity-group.high h3 { border-left: 4px solid #ff6b6b; }
.nc-severity-group.medium h3 { border-left: 4px solid var(--warning); }
.nc-severity-group.low h3 { border-left: 4px solid var(--success); }

.nc-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nc-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.nc-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.nc-item.resolved {
    opacity: 0.6;
    border-color: var(--success);
}

.nc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.nc-title {
    font-weight: 600;
    font-size: 1rem;
}

.nc-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.status-open { background: rgba(255, 71, 87, 0.2); color: var(--danger); }
.status-in-progress { background: rgba(255, 193, 7, 0.2); color: var(--warning); }
.status-resolved { background: rgba(0, 210, 106, 0.2); color: var(--success); }

.nc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.nc-meta span {
    color: var(--text-muted);
}

.nc-framework {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-cis { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.badge-nist { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.badge-pci { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.badge-gdpr { background: rgba(26, 188, 156, 0.2); color: #1abc9c; }

.nc-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive for new elements */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-controls {
        width: 100%;
        margin-top: 1rem;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .asset-info-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .asset-stats {
        gap: 1.5rem;
    }
    
    .hosts-grid {
        grid-template-columns: 1fr;
    }
    
    .nc-counters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nc-filters {
        flex-direction: column;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}

/* Search Input */
.search-group {
    flex: 1;
    min-width: 300px;
}

#ncSearchInput {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#ncSearchInput:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

#ncSearchInput::placeholder {
    color: var(--text-muted);
}

/* OS Badge */
.os-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.os-badge.linux {
    background: rgba(255, 133, 0, 0.2);
    color: #ff8500;
}

.os-badge.windows {
    background: rgba(0, 164, 239, 0.2);
    color: #00a4ef;
}

/* Host Card OS Info */
.host-card .host-os {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* NC Item Enhanced */
.nc-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* CIS Levels Counters */
.cis-levels-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.level-counter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.level-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.level-counter.l1 { border-color: #cd7f32; }
.level-counter.l2 { border-color: #c0c0c0; }
.level-counter.l3 { border-color: #ffd700; }

.level-badge {
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
}

.level-counter.l1 .level-badge { background: rgba(205, 127, 50, 0.2); }
.level-counter.l2 .level-badge { background: rgba(192, 192, 192, 0.2); }
.level-counter.l3 .level-badge { background: rgba(255, 215, 0, 0.2); }

.level-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.level-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.level-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.level-count {
    font-size: 2rem;
    font-weight: 700;
}

.level-counter.l1 .level-count { color: #cd7f32; }
.level-counter.l2 .level-count { color: #c0c0c0; }
.level-counter.l3 .level-count { color: #ffd700; }

/* CIS Level Buttons */
.filter-btn.cis-l1 { border-color: #cd7f32; }
.filter-btn.cis-l1.active { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }

.filter-btn.cis-l2 { border-color: #c0c0c0; }
.filter-btn.cis-l2.active { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; }

.filter-btn.cis-l3 { border-color: #ffd700; }
.filter-btn.cis-l3.active { background: rgba(255, 215, 0, 0.2); color: #ffd700; }

/* NC Item Level Badge */
.nc-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.nc-level-badge.l1 { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }
.nc-level-badge.l2 { background: rgba(192, 192, 192, 0.2); color: #e0e0e0; }
.nc-level-badge.l3 { background: rgba(255, 215, 0, 0.2); color: #ffd700; }

@media (max-width: 768px) {
    .cis-levels-counters {
        grid-template-columns: 1fr;
    }
}

/* ========== SECURITY PATHS ========== */
.security-paths {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.path-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.path-card:hover {
    transform: translateY(-3px);
    border-color: var(--highlight);
}

.path-card.critical-path { border-left: 4px solid #ff4757; }
.path-card.high-path { border-left: 4px solid #ff9f43; }
.path-card.medium-path { border-left: 4px solid #ffc107; }

.path-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.path-info h3 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.path-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.path-stats {
    margin-top: 1rem;
}

.path-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--highlight);
}

.path-progress {
    margin-top: 1rem;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight), #4cd137);
    transition: width 0.5s;
}

/* ========== HOTFIX SECTION ========== */
.hotfix-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.hotfix-filters {
    margin-bottom: 1rem;
}

.hotfix-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hotfix-stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.hotfix-stat-card:hover {
    background: rgba(255,255,255,0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-name {
    font-weight: 600;
    color: #fff;
}

.stat-total {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--highlight);
    margin-bottom: 0.25rem;
}

.stat-details span {
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

.hotfix-table {
    width: 100%;
    border-collapse: collapse;
}

.hotfix-table th,
.hotfix-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hotfix-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.hotfix-row.critical { background: rgba(255, 71, 87, 0.1); }
.hotfix-row.high { background: rgba(255, 159, 67, 0.1); }

.sev-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sev-badge.critical { background: rgba(255, 71, 87, 0.3); color: #ff4757; }
.sev-badge.high { background: rgba(255, 159, 67, 0.3); color: #ff9f43; }
.sev-badge.medium { background: rgba(255, 193, 7, 0.3); color: #ffc107; }
.sev-badge.low { background: rgba(46, 213, 115, 0.3); color: #2ed573; }

.host-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

.hotfix-desc {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-btn {
    background: var(--highlight);
    color: #000;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #fff;
}

/* NC Level Badge */
.nc-level-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.nc-level-badge.l1 { background: #cd7f32; color: #fff; }
.nc-level-badge.l2 { background: #c0c0c0; color: #000; }
.nc-level-badge.l3 { background: #ffd700; color: #000; }

@media (max-width: 1024px) {
    .paths-grid { grid-template-columns: 1fr; }
    .hotfix-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================
   PATHS DE SEGURANÇA
   =========================================== */
.security-paths {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.security-paths h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.path-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: var(--highlight);
}

.path-card.critical-path { border-left: 4px solid #ff4757; }
.path-card.high-path { border-left: 4px solid #ff9f43; }
.path-card.medium-path { border-left: 4px solid #ffc107; }

.path-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.path-info h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.path-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.path-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.path-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--highlight);
}

.path-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.path-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight), #00d4aa);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--text);
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}

/* ===========================================
   HOTFIX POR MÁQUINA
   =========================================== */
.hotfix-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hotfix-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hotfix-filters {
    margin-bottom: 1.5rem;
}

.hotfix-summary {
    margin-bottom: 1.5rem;
}

.hotfix-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hotfix-stat-card {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.hotfix-stat-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--highlight);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-name {
    font-weight: bold;
    color: var(--text);
}

.stat-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-total {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-critical, .stat-high, .stat-medium, .stat-low {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-critical { background: rgba(255,71,87,0.2); color: #ff4757; }
.stat-high { background: rgba(255,159,67,0.2); color: #ff9f43; }
.stat-medium { background: rgba(255,193,7,0.2); color: #ffc107; }
.stat-low { background: rgba(46,213,115,0.2); color: #2ed573; }

/* Hotfix Table */
.hotfix-table {
    width: 100%;
    border-collapse: collapse;
}

.hotfix-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.hotfix-table td {
    padding: 1rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.hotfix-row.critical { background: rgba(255,71,87,0.05); }
.hotfix-row.high { background: rgba(255,159,67,0.05); }

.sev-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.sev-badge.critical { background: rgba(255,71,87,0.2); color: #ff4757; }
.sev-badge.high { background: rgba(255,159,67,0.2); color: #ff9f43; }
.sev-badge.medium { background: rgba(255,193,7,0.2); color: #ffc107; }
.sev-badge.low { background: rgba(46,213,115,0.2); color: #2ed573; }

.host-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0,212,170,0.2);
    color: #00d4aa;
    border-radius: 4px;
    font-size: 0.8rem;
}

.hotfix-desc {
    max-width: 400px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.action-btn {
    background: var(--highlight);
    color: #0a0f1a;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #00d4aa;
    transform: scale(1.05);
}

/* ===========================================
   MELHORIAS ADICIONAIS
   =========================================== */
.nc-level-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.nc-level-badge.l1 { background: rgba(255,71,87,0.3); color: #ff6b6b; }
.nc-level-badge.l2 { background: rgba(255,159,67,0.3); color: #ff9f43; }
.nc-level-badge.l3 { background: rgba(255,193,7,0.3); color: #ffc107; }

/* Responsive for new sections */
@media (max-width: 768px) {
    .paths-grid { grid-template-columns: 1fr; }
    .hotfix-stats { grid-template-columns: 1fr; }
    .hotfix-table { font-size: 0.8rem; }
    .hotfix-table th, .hotfix-table td { padding: 0.5rem; }
    .hotfix-desc { max-width: 150px; }
}

/* ========== HOTFIX UPDATED STYLES ========== */
.hotfix-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.hotfix-overview > div {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ht-icon {
    font-size: 2rem;
}

.ht-value {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.ht-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hotfix-critical-card .ht-value { color: #ff4757; }
.hotfix-high-card .ht-value { color: #ff9f43; }

.host-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.host-card-hotfix {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.host-card-hotfix:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.hc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hc-icon { font-size: 1.5rem; }
.hc-name { font-weight: 600; }

.hc-score {
    text-align: center;
    margin-bottom: 1rem;
}

.score-circle-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--highlight) var(--score), rgba(255,255,255,0.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
}

.hc-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hc-breakdown span {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.view-btn {
    width: 100%;
    background: var(--highlight);
    color: #000;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Actions Grid */
.hotfix-actions {
    margin-top: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.action-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.critical-action { border-left: 4px solid #ff4757; }
.high-action { border-left: 4px solid #ff9f43; }

.ac-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ac-icon { font-size: 1.5rem; }
.ac-title { font-weight: 600; font-size: 1.1rem; }

.ac-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ac-list li {
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: all 0.2s;
}

.ac-list li:hover {
    background: rgba(255,255,255,0.08);
}

.ac-control {
    font-family: monospace;
    color: var(--highlight);
}

.ac-host {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ac-none {
    color: #2ed573;
    text-align: center;
    display: block;
}

@media (max-width: 1024px) {
    .hotfix-overview { grid-template-columns: 1fr; }
    .host-cards { grid-template-columns: repeat(2, 1fr); }
    .actions-grid { grid-template-columns: 1fr; }
}

/* ========== HOTFIX WARNING & PLACEHOLDER ========== */
.hotfix-warning {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 159, 67, 0.1);
    border: 1px solid rgba(255, 159, 67, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-icon {
    font-size: 3rem;
}

.warning-content h4 {
    color: #ff9f43;
    margin-bottom: 0.5rem;
}

.warning-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.warning-actions {
    margin-top: 1rem;
}

.warning-actions .info {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.warning-actions code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--highlight);
    overflow-x: auto;
}

.hotfix-stats-placeholder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-placeholder-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

.stat-placeholder-card .stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-placeholder-card .stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stat-placeholder-card .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
}

.hotfix-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.hotfix-info h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.hotfix-info p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.info-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.info-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.info-box li:last-child {
    border-bottom: none;
}

.info-box li strong {
    display: inline;
    color: var(--highlight);
}

@media (max-width: 1024px) {
    .hotfix-stats-placeholder {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hotfix-warning {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hotfix-stats-placeholder {
        grid-template-columns: 1fr;
    }
}
