/* =========================================
   VARIABLES & GLOBAL STYLES — WHITE THEME (DEFAULT)
   ========================================= */
:root,
[data-theme="light"] {
    /* Legacy compatibility aliases — mapped to pericles-base tokens */
    --primary: #1e293b;
    --primary-dark: #0f172a;
    --accent: #3b82f6;
    --accent-soft: #dbeafe;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --surface-muted: #f1f5f9;
    --sidebar-bg: #1e293b;
    --sidebar-accent: #0b1220;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --chart-grid: #e2e8f0;
    --chart-text: #64748b;
    --table-stripe: #f8fafc;
    --hover-bg: rgba(59,130,246,0.04);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================================
   DARK THEME
   ========================================= */
[data-theme="dark"] {
    --primary: #e2e8f0;
    --primary-dark: #f1f5f9;
    --accent: #60a5fa;
    --accent-soft: rgba(96,165,250,0.15);
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --surface-muted: #1e293b;
    --sidebar-bg: #0f172a;
    --sidebar-accent: #020617;
    --text-main: #e2e8f0;
    --text-light: #94a3b8;
    --border: #334155;
    --border-strong: #475569;
    --chart-grid: #334155;
    --chart-text: #94a3b8;
    --table-stripe: #1e293b;
    --hover-bg: rgba(96,165,250,0.08);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.4);
}

[data-theme="dark"] body {
    background-color: var(--bg-page);
    color: var(--text-main);
}

[data-theme="dark"] .p-topbar {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .p-sidebar {
    background: var(--sidebar-bg);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .table-card,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .assess-header,
[data-theme="dark"] .assess-score-grid,
[data-theme="dark"] .assess-section-bars,
[data-theme="dark"] .assess-edit-panel,
[data-theme="dark"] .assess-history-chart,
[data-theme="dark"] .gantt-container,
[data-theme="dark"] .gantt-summary-item,
[data-theme="dark"] .catalog-stat-item,
[data-theme="dark"] .dash-empty-state,
[data-theme="dark"] .card,
[data-theme="dark"] .detail-card,
[data-theme="dark"] .view-header,
[data-theme="dark"] .assess-guidance-box,
[data-theme="dark"] .monitoring-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .pricing-card {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .table-card thead,
[data-theme="dark"] .data-table th,
[data-theme="dark"] table thead {
    background: var(--surface-muted);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .catalog-input {
    background: var(--surface-muted);
    border-color: var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .main-header,
[data-theme="dark"] .admin-top-bar {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .badge.success { background: rgba(52,211,153,0.15); color: #34d399; }
[data-theme="dark"] .badge.warning { background: rgba(251,191,36,0.15); color: #fbbf24; }
[data-theme="dark"] .badge.danger  { background: rgba(248,113,113,0.15); color: #f87171; }

[data-theme="dark"] .assess-stat-pill.compliant     { background: rgba(52,211,153,0.15); color: #34d399; }
[data-theme="dark"] .assess-stat-pill.partial       { background: rgba(251,191,36,0.15); color: #fbbf24; }
[data-theme="dark"] .assess-stat-pill.in-progress   { background: rgba(96,165,250,0.15); color: #60a5fa; }
[data-theme="dark"] .assess-stat-pill.non-compliant { background: rgba(248,113,113,0.15); color: #f87171; }
[data-theme="dark"] .assess-stat-pill.not-started   { background: rgba(148,163,184,0.15); color: #94a3b8; }

[data-theme="dark"] table tr:hover { background: var(--hover-bg); }
[data-theme="dark"] .assess-table tr:hover { background: var(--hover-bg); }

[data-theme="dark"] .progress-container,
[data-theme="dark"] .assess-section-bar-track,
[data-theme="dark"] .assess-mini-progress {
    background: var(--border);
}

[data-theme="dark"] .catalog-assessment-link { background: var(--surface-muted); }
[data-theme="dark"] .catalog-assessment-link:hover { background: var(--accent-soft); }

/* =========================================
   LICENSE EXPIRY BANNER
   ========================================= */
.license-banner {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 200;
    position: relative;
    animation: bannerSlideDown 0.4s ease-out;
}

.license-banner-expired {
    background: linear-gradient(90deg, #f87171, #ef4444);
    color: #fff;
}

.license-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.license-banner-content i {
    font-size: 1.1rem;
}

.license-banner-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.license-banner-close:hover {
    opacity: 1;
}

@keyframes bannerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   TOPBAR ENHANCEMENTS — Language + Theme
   ========================================= */
.p-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-lang-selector {
    position: relative;
}

.p-lang-btn {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
}

.p-lang-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.p-lang-code {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.p-lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 170px;
    z-index: 2000;
    display: none;
    overflow: hidden;
}

.p-lang-dropdown.open {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.p-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.p-lang-option:last-child {
    border-bottom: none;
}

.p-lang-option:hover {
    background: var(--hover-bg);
}

.p-lang-option.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.p-theme-toggle {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.p-theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Reset & base provided by pericles-base.css */

/* =========================================
   LAYOUT PRINCIPAL (uses .p-app, .p-sidebar from base)
   Legacy aliases for views that still reference old classes
   ========================================= */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgb(44, 62, 80);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgb(52, 152, 219);
}

.app-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hub-text {
    color: var(--accent);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left-color: var(--accent);
}

.sidebar-menu i {
    width: 24px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Submenu (Dropdown) */
.submenu {
    background: rgba(0,0,0,0.2);
    display: none;
    list-style: none;
    padding: 5px 0;
}

.submenu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

.submenu a {
    padding-left: 58px;
    font-size: 0.9em;
    border-left: none;
}

.submenu a:hover, 
.submenu a.active {
    color: var(--accent);
    background: rgba(255,255,255,0.02);
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.8em;
}

.has-submenu.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Main Content Wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Header */
.main-header {
    height: 70px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    flex-shrink: 0;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background-color: var(--bg-page);
}

/* --- DASHBOARD STYLES (Cards & Progress) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

/* Couleurs par catégorie */
.card-physique::before { background-color: #e74c3c; }
.card-technologique::before { background-color: #3498db; }
.card-personne::before { background-color: #f1c40f; }
.card-organisation::before { background-color: #2ecc71; }
.card-total::before { background-color: var(--primary); }

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card-physique .card-icon { color: #e74c3c; }
.card-technologique .card-icon { color: #3498db; }
.card-personne .card-icon { color: #f1c40f; }
.card-organisation .card-icon { color: #2ecc71; }

.card-title {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--surface-muted);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* --- VUE SPECIFIQUE --- */
.view-header {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.view-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.detail-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; }
    .sidebar-menu { display: none; }
    .main-wrapper { height: auto; }
}

.navbar-links a:hover {
    background-color: var(--accent);
    color: white;
}

/* =========================================
   LANGUAGE SELECTOR
   ========================================= */
.language-selector {
    position: relative;
}

.language-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: inherit;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-top: 0.5rem;
    display: none;
    z-index: 2000;
    min-width: 150px;
    overflow: hidden;
}

.language-menu.active {
    display: block;
}

.language-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-main) !important;
    border-bottom: 1px solid #eee;
}

.language-link:hover {
    background: #f9f9f9;
    color: var(--accent) !important;
}

/* User Menu (Similar to Language Menu) */
.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: inherit;
    transition: background 0.3s;
}

.user-menu-btn:hover {
    background: rgba(255,255,255,0.2);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-top: 0.5rem;
    display: none;
    z-index: 2000;
    min-width: 180px;
    overflow: hidden;
}

.user-menu.active {
    display: block;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-main) !important;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.user-menu-link:hover {
    background: #f9f9f9;
    color: var(--accent) !important;
}

.user-menu-link:last-child {
    border-bottom: none;
    color: #e74c3c !important;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    background-color: var(--accent);
    color: white !important;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
    text-align: center;
    display: block;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background-color: var(--bg-card);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   SECTIONS & TITLES
   ========================================= */
.section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* =========================================
   DASHBOARD CARD STYLE (Stat Cards)
   ========================================= */
.dashboard-card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    transition: transform 0.3s;
    border-left: 4px solid var(--accent);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h3 {
    margin: 0 0 15px 0;
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dashboard-card i {
    margin-right: 8px;
}

/* =========================================
   PRODUCTS GRID
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.product-body {
    flex: 1;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-main);
    margin: 15px 0;
    display: block;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--success);
}

/* =========================================
   FEATURES GRID
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid var(--warning);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    padding: 0;
    overflow: hidden;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.pricing-card.highlighted {
    border-left: 4px solid var(--success);
    transform: scale(1.02);
}

.pricing-header {
    background: var(--surface-muted);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.2rem;
}

.pricing-header .price-val {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
}

.pricing-body {
    padding: 25px;
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--accent);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* =========================================
   FOOTER (SIDEBAR STYLE)
   ========================================= */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 5rem;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer-divider {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .dashboard-card, 
    .pricing-card.highlighted {
        transform: none !important;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
    }

    .admin-nav li:last-child {
        border-top: none;
    }

    .admin-top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-content {
        padding: 24px 18px;
    }
}

/* =========================================
   AJOUTS : LAYOUT ADMIN (SIDEBAR & DASHBOARD)
   ========================================= */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-page);
}

.admin-sidebar {
    width: 275px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-accent) 100%);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.25);
}

.admin-header-logo {
    text-align: center;
    padding: 0 20px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-header-logo h2 {
    font-size: 1.4rem;
    margin: 8px 0 0;
    letter-spacing: 0.03em;
}

.admin-header-logo a {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-header-logo .logo-icon {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 10px;
}

.admin-header-logo .hub-text {
    color: var(--accent);
}

/* Admin Top Bar User Info */
.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-info .user-avatar {
    width: 35px;
    height: 35px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.admin-user-info .user-name {
    font-weight: 600;
    color: var(--primary);
}

.admin-header-logo p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}

.admin-nav {
    list-style: none;
    padding: 20px 0 0 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255,255,255,0.05);
    border-left-color: var(--accent);
    color: white;
}

.admin-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.admin-nav li:first-child {
    margin-top: 8px;
}

/* Submenu Styles */
.admin-nav .has-submenu {
    position: relative;
}

.admin-nav .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, background 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.admin-nav .submenu.open {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.admin-nav .submenu li a {
    padding: 10px 28px 10px 50px;
    font-size: 0.9rem;
    border-left: none;
}

.admin-nav .submenu li a:hover,
.admin-nav .submenu li a.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.admin-nav .dropdown-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.admin-nav .has-submenu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.admin-nav li.separator {
    padding: 16px 28px 4px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.admin-nav li:last-child {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-top-bar {
    background: var(--bg-card);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-top-bar h1 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.admin-user-menu .user-menu-btn {
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.admin-content {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

/* =========================================
   AJOUTS : COMPOSANTS DASHBOARD (Stats & Tables)
   ========================================= */

/* Grille de Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    border-left: 5px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }

.stat-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-main);
}

/* Tableaux de Données */
.data-card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.table-responsive {
    overflow-x: auto;
}

/* Sections applicatives */
.compliance-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.section-actions .btn-link {
    font-size: 0.9rem;
    color: var(--accent);
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
    border-left: 5px solid var(--accent);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.stat-card .card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card .card-title {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.stat-card .card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .progress-bar {
    height: 8px;
    background: var(--surface-muted);
    border-radius: 10px;
    overflow: hidden;
}

.stat-card .progress {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
}

.card-physique { border-left-color: #3498db; }
.card-physique .card-icon { color: #3498db; }
.card-physique .progress { background: #3498db; }

.card-technologique { border-left-color: #9b59b6; }
.card-technologique .card-icon { color: #9b59b6; }
.card-technologique .progress { background: #9b59b6; }

.card-personne { border-left-color: #2ecc71; }
.card-personne .card-icon { color: #2ecc71; }
.card-personne .progress { background: #2ecc71; }

.card-organisation { border-left-color: #f1c40f; }
.card-organisation .card-icon { color: #f1c40f; }
.card-organisation .progress { background: #f1c40f; }

.stat-card .stat-card-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-light);
}

.stat-card .stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 6px;
    color: var(--text-main);
}

.stat-card.success { border-color: rgba(46, 125, 50, 0.35); background: #edf7ed; }
.stat-card.critical { border-color: rgba(216, 67, 21, 0.3); background: #fff4ef; }

.iso-compliance-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.iso-overall-card {
    background: linear-gradient(155deg, #102b44, #1c4c72);
    color: white;
    padding: 28px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.iso-progress-ring {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.iso-progress-ring::after {
    content: "";
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
}

.iso-progress-value {
    position: absolute;
    font-size: 34px;
    font-weight: 700;
}

.iso-note {
    text-align: center;
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.85;
}

.iso-category-list {
    background: var(--surface-muted);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iso-category-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iso-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.iso-category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.iso-category-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.iso-category-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.iso-category-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.iso-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.iso-status-chip {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.iso-status-chip.success { background: #e9f8ef; border-color: rgba(46,125,50,0.3); }
.iso-status-chip.warning { background: #fff7e0; border-color: rgba(249,168,37,0.5); }
.iso-status-chip.alert { background: #ffefed; border-color: rgba(216,67,21,0.4); }

.iso-permission-indicator {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.standard-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    background: var(--surface-muted);
    transition: transform 0.25s ease, border-color 0.25s ease;
    color: inherit;
}

.standard-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.standard-card h3 {
    margin: 0 0 6px 0;
}

.standard-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.standard-card.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.standard-lock-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e57373;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.quick-action-card {
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: white;
    font-weight: 600;
}

.quick-action-card small {
    display: block;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}

.quick-action-card.audit { background: linear-gradient(135deg, #1d4ed8, #1e88e5); }
.quick-action-card.report { background: linear-gradient(135deg, #2e7d32, #43a047); }
.quick-action-card.iso { background: linear-gradient(135deg, #ef6c00, #f57c00); }

.quick-action-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    padding: 14px 18px;
    border-radius: 14px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.warning {
    border-left-color: var(--warning);
    background: #fff8e1;
}

.table-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card thead {
    background: var(--surface-muted);
}

.table-card th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}

.table-card td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.template-card {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 20px;
    background: var(--surface-muted);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.template-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.success { background: #e1f3e4; color: #1b5e20; }
.badge.warning { background: #fff4e5; color: #8d4b01; }
.badge.danger { background: #ffeaea; color: #9c1c1c; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--surface-muted);
}

.toggle-pill {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
}

.toggle-pill input { display: none; }

.toggle-track {
    width: 100%;
    background: #cbd5f5;
    border-radius: 999px;
    transition: background 0.3s ease;
}

.toggle-handle {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-pill input:checked + .toggle-track {
    background: #42a5f5;
}

.toggle-pill input:checked + .toggle-track + .toggle-handle {
    transform: translateX(20px);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.setting-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    background: var(--bg-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.setting-card h3,
.setting-card h4 {
    margin-top: 0;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 24px;
}

.modal.show {
    display: flex;
}

.modal-panel {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    width: min(520px, 100%);
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.25);
}

.modal-panel h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: var(--surface-muted);
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    padding: 15px 20px;
    border-bottom: 2px solid #eee;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.95rem;
}

.data-table tr:hover {
    background-color: var(--hover-bg);
}

/* Badges (Pillules de statut) */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-primary { background: rgba(52, 152, 219, 0.1); color: var(--accent); }
.badge-success { background: rgba(39, 174, 96, 0.1); color: var(--success); }
.badge-warning { background: rgba(243, 156, 18, 0.1); color: var(--warning); }
.badge-danger { background: rgba(231, 76, 60, 0.1); color: var(--danger); }

/* =========================================
   AJOUTS : PAGE LOGIN (now via pericles-base.css .p-login-*)
   ========================================= */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.08), transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.06), transparent 60%);
    animation: p-loginBgShift 15s ease-in-out infinite alternate;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.97);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    border-radius: var(--p-radius-xl, 16px);
    box-shadow: var(--p-shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1)), 0 0 80px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-header img {
    height: 48px;
    margin-bottom: 10px;
}

.login-header h2 {
    color: var(--text-main);
    margin-bottom: 30px;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .stat-card { margin-bottom: 10px; }
}

/* =========================================
   ENHANCEMENTS: NEW PAGES STYLING
   ========================================= */

/* Dashboard Page Enhancements */
.dashboard-section {
    animation: slideInUp 0.6s ease-out;
}

.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
}

.stat-card.primary { border-left-color: var(--accent); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }

/* Pricing Page Enhancements */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.25);
    border-color: var(--accent);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.highlighted {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
    transform: scale(1.05);
}

.pricing-header {
    background: var(--surface-muted);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1;
}

.pricing-header h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.price-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.pricing-body {
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.feature-list {
    list-style: none;
    margin-bottom: 25px;
}

.feature-list li {
    padding: 12px 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.feature-list li:hover {
    padding-left: 8px;
    color: var(--accent);
}

.feature-list li i {
    color: var(--success);
    font-weight: 700;
}

/* FAQ Page Enhancements */
.faq-item {
    margin-bottom: 15px;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.1);
}

.faq-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: var(--surface-muted);
    border: none;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s;
}

.faq-toggle:hover {
    background: var(--hover-bg);
    color: var(--accent);
}

.faq-toggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle.active i {
    transform: rotate(180deg);
}

.faq-content {
    display: none;
    padding: 20px;
    background: var(--bg-card);
    color: var(--text-light);
    line-height: 1.8;
    border-top: 1px solid #ecf0f1;
    animation: slideDown 0.3s ease-out;
}

.faq-content.active {
    display: block;
}

/* Legal Pages Styling */
.legal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-section {
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.legal-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    font-size: 1.5rem;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    margin-left: 0;
}

.legal-section li {
    padding: 8px 0 8px 25px;
    color: var(--text-light);
    position: relative;
}

.legal-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Button Enhancements */
.btn-primary, .btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Headings Enhancement */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
    animation: slideInUp 0.6s ease-out;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards General Styling */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .pricing-card { 
        margin-bottom: 20px;
    }
    
    .pricing-card.highlighted {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .navbar-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .pricing-card {
        margin-bottom: 15px;
    }
    
    .legal-header {
        padding: 40px 20px;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-section {
        padding: 20px;
    }
    
    .faq-toggle {
        font-size: 1rem;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
        height: auto;
        flex-wrap: wrap;
    }
    
    .navbar-links {
        gap: 0.5rem;
    }
    
    .navbar-links a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .price-val {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 0 15px;
    }
}

/* =========================================
   MONITORING PAGE STYLES
   ========================================= */

.monitoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.monitoring-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitoring-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitoring-header i {
    color: var(--accent);
}

.monitoring-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.monitoring-card.alert-warning {
    border-color: #ff9800;
    background-color: rgba(255, 152, 0, 0.05);
}

.monitoring-card.alert-critical {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.chart-box {
    position: relative;
    height: 200px;
    width: 100%;
}

.metric-badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.metric-badge.ok {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.metric-badge.warning {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.metric-badge.critical {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.monitoring-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-export {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

.btn-export:hover {
    opacity: 0.8;
}

.btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-export-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8em;
}

.tab-nav {
    margin: 1.5rem 0;
    border-bottom: 2px solid var(--border);
    display: flex;
    gap: 1rem;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #7f8c8d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: var(--accent);
    color: var(--text-main);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-box {
    background-color: var(--surface-muted);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--accent);
}

.info-label {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
}

.scroll-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.map-container {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    background-color: var(--surface-muted);
    border: 1px solid var(--border);
    z-index: 1;
}

.map-legend {
    margin-top: 10px;
    font-size: 0.9em;
    display: flex;
    gap: 15px;
    color: #7f8c8d;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot-live {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #e74c3c;
}

.dot-hist {
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.7;
}

.status-pulse {
    height: 10px;
    width: 10px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

@keyframes pulse-critical {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.status-pulse.warning {
    background-color: #ff9800;
    animation: pulse-warning 2s infinite;
}

.status-pulse.critical {
    background-color: #dc3545;
    animation: pulse-critical 2s infinite;
}

.disk-item {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.disk-item:last-child {
    border-bottom: none;
}

.disk-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.disk-bar {
    background-color: var(--surface-muted);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.disk-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    transition: width 0.3s ease;
}

.disk-stats {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 0.3rem;
}

.last-update {
    font-size: 0.9em;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.update-text {
    font-size: 0.85em;
    color: #7f8c8d;
}

.tools-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tool-link {
    text-align: center;
    text-decoration: none;
    padding: 1rem;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table thead tr {
    border-bottom: 2px solid var(--border);
}

.user-table th {
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
}

.user-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}

.detailed-info-content {
    padding: 1.5rem;
}

.detailed-info-loading {
    color: #7f8c8d;
    text-align: center;
}

.grid-full-width {
    grid-column: 1 / -1;
}

.text-center {
    text-align: center;
}

.margin-top-lg {
    margin-top: 1.5rem;
}

/* =========================================
   FOOTER STYLES (EXTRACTED FROM INDEX.PHP)
   ========================================= */

.footer-col-brand {
    margin-bottom: 1rem;
}

.footer-col-brand img {
    height: 30px;
}

.footer-col-brand h4 {
    margin: 0;
    color: white;
}

.footer-social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.footer-social-link {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    opacity: 1;
}

/* =========================================
   DASHBOARD LAYOUT STYLES
   ========================================= */

.dashboard-pma-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-pma-button {
    margin: 0;
}

.error-text {
    color: #e74c3c;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.full-width-grid {
    grid-column: 1 / -1;
}

/* =========================================
   ACCOUNT MENU STYLES
   ========================================= */

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user-info {
    text-align: right;
}

.admin-user-info p {
    margin: 0;
    color: #ecf0f1;
    font-size: 0.9rem;
}

.admin-user-name {
    font-weight: 600;
    color: white;
}

.user-menu-wrapper {
    position: relative;
    list-style: none;
}

.user-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    overflow: hidden;
    display: none;
    z-index: 2000;
}

.user-menu.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.user-menu-link:last-child {
    border-bottom: none;
    color: #e74c3c !important;
}

.user-menu-link:hover {
    background-color: #f5f5f5;
    color: var(--accent);
    padding-left: 20px;
}

.user-menu-link i {
    color: var(--accent);
}

/* =========================================
   SIDEBAR STYLES
   ========================================= */

.sidebar-logout {
    margin-top: auto;
    border-top: 2px solid #34495e;
}

.sidebar-logout a {
    color: #e74c3c;
}

/* =========================================
   ADMIN DASHBOARD LAYOUT STYLES
   ========================================= */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s;
}

.admin-header-logo {
    padding: 25px 20px;
    border-bottom: 2px solid var(--accent);
    text-align: center;
}

.admin-header-logo h2 {
    margin: 0;
    color: var(--accent);
    font-size: 20px;
}

.admin-header-logo p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #95a5a6;
}

.admin-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav li {
    margin: 0;
    border-bottom: 1px solid #34495e;
}

.admin-nav li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background-color: var(--accent);
    border-left-color: var(--success);
    color: white;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.admin-top-bar {
    background: var(--bg-card);
    padding: 20px 30px;
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-top-bar h1 {
    margin: 0;
    color: var(--text-main);
    font-size: 24px;
}

.admin-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--accent);
    color: #0c5460;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Button Styles */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    padding: 25px;
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
    color: var(--text-main);
    border-bottom: 2px solid var(--bg-page);
    padding-bottom: 15px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table thead {
    background-color: var(--bg-page);
    border-bottom: 2px solid var(--border);
}

table th {
    padding: 15px;
    text-align: left;
    color: var(--text-main);
    font-weight: 600;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--bg-page);
}

table tr:hover {
    background-color: var(--hover-bg);
}

table tr:last-child td {
    border-bottom: none;
}

/* Page Visibility */
.hidden-page {
    display: none;
}

.hidden-page.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .admin-nav li a {
        display: inline-block;
        width: 23%;
        text-align: center;
        padding: 10px 5px;
    }
    
    .admin-nav li {
        display: inline-block;
        width: 24%;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .iso-compliance-grid {
        grid-template-columns: 1fr;
    }

    .admin-top-bar {
        flex-wrap: wrap;
    }
}

/* =========================================
   COMPLIANCE PLATFORM — Catalog, Assessment, Gantt
   ========================================= */

/* Alerts */
.cah-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.cah-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.cah-alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.cah-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.cah-alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.cah-alert a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ---- Catalog ---- */
.catalog-header { margin-bottom: 20px; }
.catalog-header h2 { font-size: 1.6rem; margin-bottom: 6px; }
.catalog-header p  { color: var(--text-light); }

.catalog-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.catalog-stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}
.catalog-stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.catalog-stat-label  { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

.catalog-category { margin-bottom: 30px; }
.catalog-category-title {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.15s;
}
.catalog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.catalog-card-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
}

.catalog-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding-top: 12px;
}
.catalog-card-icon { font-size: 2rem; }
.catalog-card-meta h4 { margin: 0; font-size: 1rem; }
.catalog-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}
.catalog-card-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 50px;
}
.catalog-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.catalog-card-price { font-weight: 700; color: var(--text-main); font-size: 1.05rem; }

.catalog-card-actions { display: flex; flex-direction: column; gap: 10px; }
.catalog-assessments-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.catalog-assessment-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface-muted);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    transition: background 0.15s;
}
.catalog-assessment-link:hover { background: var(--accent-soft); }
.catalog-assessment-name { flex: 1; font-weight: 600; }
.catalog-assessment-score { font-weight: 700; color: var(--accent); }

.catalog-new-assessment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.catalog-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-card);
    color: var(--text-main);
}
.catalog-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(59,130,246,0.15); }

.catalog-subscribe-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.catalog-subscribe-btn:hover { background: var(--accent); filter: brightness(1.1); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-icon { padding: 6px 10px; }

/* ---- Assessment View ---- */
.assess-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.assess-header-info { display: flex; align-items: center; gap: 14px; }
.assess-header-icon { font-size: 2.2rem; }
.assess-header-info h2 { margin: 0 0 4px; font-size: 1.3rem; }
.assess-fw-name { color: var(--text-light); font-size: 0.85rem; margin-right: 8px; }
.assess-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Score Overview */
.assess-score-grid {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.assess-score-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}
.assess-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
}
.score-ring { width: 100%; height: 100%; }
.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}
.assess-score-label { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; }

.assess-score-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}
.assess-stat-pill {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.assess-stat-pill.compliant     { background: #d1fae5; color: #065f46; }
.assess-stat-pill.partial       { background: #fef3c7; color: #92400e; }
.assess-stat-pill.in-progress   { background: #dbeafe; color: #1e40af; }
.assess-stat-pill.non-compliant { background: #fee2e2; color: #991b1b; }
.assess-stat-pill.not-started   { background: #f1f5f9; color: #475569; }
.assess-stat-pill.na            { background: #f8fafc; color: #94a3b8; }

/* Section progress bars */
.assess-section-bars {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.assess-section-bars h3 { margin-bottom: 14px; font-size: 1rem; }
.assess-section-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.assess-section-bar-label {
    min-width: 200px;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}
.assess-section-bar-track {
    flex: 1;
    height: 10px;
    background: var(--surface-muted);
    border-radius: 5px;
    overflow: hidden;
}
.assess-section-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
}
.assess-section-bar-pct { font-size: 0.85rem; font-weight: 700; min-width: 40px; text-align: right; }

/* Edit panel */
.assess-edit-panel {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(59,130,246,0.08);
}
.assess-edit-panel h3 { margin-bottom: 16px; font-size: 1.1rem; }
.assess-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.assess-guidance-box {
    background: var(--surface-muted);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-left: 4px solid var(--accent);
}
.assess-guidance-box h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.assess-guidance-steps { border-left-color: var(--success); }
.assess-guidance-verify { border-left-color: var(--warning); }
.assess-guidance-text {
    font-family: inherit;
    white-space: pre-wrap;
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
}

/* Controls table */
.assess-section-block { margin-bottom: 24px; }
.assess-section-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.assess-section-count { font-size: 0.8rem; color: var(--text-light); font-weight: 400; }

.assess-table { width: 100%; border-collapse: collapse; }
.assess-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}
.assess-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.assess-table tr:hover { background: rgba(59,130,246,0.03); }
.assess-table tr.row-na { opacity: 0.5; }
.assess-table tr.row-overdue { background: #fff5f5; }

.assess-has-guidance { color: var(--accent); margin-left: 4px; font-size: 0.75rem; cursor: help; }

/* Mini progress bar */
.assess-mini-progress {
    width: 60px;
    height: 6px;
    background: var(--surface-muted);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}
.assess-mini-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}

/* Maturity dots */
.assess-maturity-dots { display: inline-flex; gap: 3px; }
.assess-maturity-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.assess-maturity-dots .dot.filled { background: var(--accent); }

/* Priority badges */
.assess-priority { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.assess-priority.p-1 { background: #fee2e2; color: #991b1b; }
.assess-priority.p-2 { background: #ffedd5; color: #9a3412; }
.assess-priority.p-3 { background: #fef3c7; color: #92400e; }
.assess-priority.p-4 { background: #dbeafe; color: #1e40af; }
.assess-priority.p-5 { background: #f1f5f9; color: #475569; }

.text-danger { color: var(--danger) !important; }

/* ---- Dashboard Compliance ---- */
.dash-welcome { margin-bottom: 20px; }
.dash-welcome h2 { font-size: 1.5rem; margin-bottom: 4px; }
.dash-welcome p  { color: var(--text-light); }

.dash-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 16px;
    margin-top: 20px;
}
.dash-empty-state i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}
.dash-empty-state h3 { margin-bottom: 8px; }
.dash-empty-state p  { color: var(--text-light); margin-bottom: 20px; }

/* ---- Gantt / Roadmap ---- */
.gantt-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.gantt-summary-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    flex: 1;
}
.gantt-summary-number { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.gantt-summary-label  { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; }

.gantt-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
}

/* History chart */
.assess-history-chart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.assess-history-chart h3 { margin-bottom: 14px; }

/* ---- Badges (shared) ---- */
.badge.info    { background: #dbeafe; color: #1e40af; }
.badge.muted   { background: #f8fafc; color: #94a3b8; }
.badge.secondary { background: #f1f5f9; color: #475569; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: 1fr; }
    .assess-score-grid { flex-direction: column; }
    .assess-edit-grid { grid-template-columns: 1fr; }
    .assess-header { flex-direction: column; align-items: flex-start; }
    .catalog-new-assessment-form { flex-direction: column; }
    .assess-section-bar-label { min-width: 120px; }
}

/* =========================================
   UX POLISH — Global Enhancements
   ========================================= */

/* Smooth theme transitions */
body,
.p-sidebar,
.p-topbar,
.p-content,
.stat-card,
.table-card,
.card,
.detail-card,
.view-header,
.monitoring-card,
.catalog-card,
.assess-header,
.assess-score-grid,
.assess-section-bars,
.assess-edit-panel,
.assess-history-chart,
.gantt-container,
.pricing-card,
.faq-item,
.contact-form,
input, select, textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Staggered card entrance animation */
.dashboard-grid .stat-card,
.catalog-grid .catalog-card,
.gantt-summary .gantt-summary-item,
.stats-grid .stat-card {
    animation: cardEnter 0.5s ease-out both;
}

.dashboard-grid .stat-card:nth-child(1) { animation-delay: 0s; }
.dashboard-grid .stat-card:nth-child(2) { animation-delay: 0.08s; }
.dashboard-grid .stat-card:nth-child(3) { animation-delay: 0.16s; }
.dashboard-grid .stat-card:nth-child(4) { animation-delay: 0.24s; }

.catalog-grid .catalog-card:nth-child(1) { animation-delay: 0s; }
.catalog-grid .catalog-card:nth-child(2) { animation-delay: 0.06s; }
.catalog-grid .catalog-card:nth-child(3) { animation-delay: 0.12s; }
.catalog-grid .catalog-card:nth-child(4) { animation-delay: 0.18s; }
.catalog-grid .catalog-card:nth-child(5) { animation-delay: 0.24s; }
.catalog-grid .catalog-card:nth-child(6) { animation-delay: 0.30s; }

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced table row hover */
.assess-table tbody tr {
    transition: background-color 0.15s, transform 0.15s;
}

.assess-table tbody tr:hover {
    background: var(--hover-bg);
    transform: translateX(2px);
}

.assess-table tbody tr:hover td:first-child {
    color: var(--accent);
}

/* Score circle pulse on load */
.assess-score-circle {
    animation: scorePulse 0.8s ease-out;
}

@keyframes scorePulse {
    0% { transform: scale(0.85); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Badge micro-interactions */
.badge {
    transition: transform 0.15s, box-shadow 0.15s;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Button loading state utility */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -7px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth focus rings for accessibility */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Enhanced progress bars with shimmer */
.assess-section-bar-fill,
.assess-mini-bar,
.progress-bar {
    position: relative;
    overflow: hidden;
}

.assess-section-bar-fill::after,
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Catalog card depth on hover */
.catalog-card:hover .catalog-card-icon {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* Section block reveal */
.assess-section-block {
    animation: fadeSlideIn 0.5s ease-out both;
}

.assess-section-block:nth-child(1) { animation-delay: 0.1s; }
.assess-section-block:nth-child(2) { animation-delay: 0.2s; }
.assess-section-block:nth-child(3) { animation-delay: 0.3s; }
.assess-section-block:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Edit panel highlight */
.assess-edit-panel {
    animation: editPanelIn 0.4s ease-out;
}

@keyframes editPanelIn {
    from { opacity: 0; transform: translateY(-10px); border-color: transparent; }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styling */
.p-content::-webkit-scrollbar {
    width: 8px;
}

.p-content::-webkit-scrollbar-track {
    background: var(--surface-muted);
}

.p-content::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

.p-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Empty state enhancement */
.dash-empty-state {
    animation: emptyBounce 0.7s ease-out;
}

.dash-empty-state i {
    animation: emptyIconFloat 3s ease-in-out infinite;
}

@keyframes emptyBounce {
    0% { opacity: 0; transform: scale(0.9); }
    60% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes emptyIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Maturity dots animation */
.assess-maturity-dots .dot.filled {
    animation: dotPop 0.3s ease-out both;
}

.assess-maturity-dots .dot:nth-child(1).filled { animation-delay: 0s; }
.assess-maturity-dots .dot:nth-child(2).filled { animation-delay: 0.06s; }
.assess-maturity-dots .dot:nth-child(3).filled { animation-delay: 0.12s; }
.assess-maturity-dots .dot:nth-child(4).filled { animation-delay: 0.18s; }
.assess-maturity-dots .dot:nth-child(5).filled { animation-delay: 0.24s; }

@keyframes dotPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Responsive topbar actions */
@media (max-width: 768px) {
    .p-topbar-actions {
        gap: 6px;
    }
    .p-lang-code {
        display: none;
    }
    .p-user-name {
        display: none;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    /* Hide navigation and non-printable elements */
    .sidebar, .topbar, .cah-header, .license-banner,
    .p-lang-selector, .p-theme-toggle, .p-user-dropdown,
    .btn, button:not(.print-keep), nav, aside,
    .chart-container, canvas,
    .te-filter-row, .te-pagination, .te-info {
        display: none !important;
    }

    /* Reset layout */
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        margin: 0;
        padding: 0;
    }
    .content, .main-content, .view-container {
        margin: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Cards and containers */
    .table-card, .card, .stat-card, .assess-section {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        background: white !important;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    /* Tables */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }
    table th, table td {
        border: 1px solid #999 !important;
        padding: 5px 8px !important;
        font-size: 9pt;
        color: black !important;
        background: white !important;
    }
    table thead th {
        background: #f0f0f0 !important;
        font-weight: 600;
    }

    /* Links */
    a { text-decoration: none !important; color: inherit !important; }

    /* Badges */
    .badge, .status-badge {
        border: 1px solid #666 !important;
        background: transparent !important;
        color: black !important;
    }

    /* Charts placeholder message */
    .chart-container::after {
        content: '[Chart - see digital version]';
        display: block;
        text-align: center;
        color: #999;
        font-style: italic;
        padding: 20px;
    }

    /* Progress bars */
    .progress-bar, .assess-progress {
        border: 1px solid #999;
        background: white !important;
    }
    .progress-fill, .assess-progress-fill {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Page breaks */
    h2, h3 { page-break-after: avoid; }
    tr { page-break-inside: avoid; }
}