/* =========================================
   VARIABLES & GLOBAL STYLES (DASHBOARD THEME)
   ========================================= */
:root {
    /* Legacy compatibility aliases — mapped to pericles-base tokens */
    --primary: var(--p-primary, #1e293b);
    --accent: var(--p-accent, #3b82f6);
    --success: var(--p-success, #10b981);
    --danger: var(--p-danger, #ef4444);
    --warning: var(--p-warning, #f59e0b);
    --bg-page: var(--p-bg-page, #f1f5f9);
    --bg-card: var(--p-bg-card, #ffffff);
    --text-main: var(--p-text, #1e293b);
    --text-light: var(--p-text-secondary, #64748b);
    --border: var(--p-border, #e2e8f0);
}

/* Reset & base provided by pericles-base.css */

/* =========================================
   NAVIGATION (SIDEBAR STYLE HEADER)
   ========================================= */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}

.navbar-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--accent);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links a {
    color: #ecf0f1;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.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: white;
    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: white;
    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: white;
    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: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    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: #f9f9f9;
    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: white;
    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;
    }
}

/* =========================================
   AJOUTS : LAYOUT ADMIN (SIDEBAR & DASHBOARD)
   ========================================= */

/* Structure globale Admin */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-page);
}

/* Sidebar (Menu Gauche) */
.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;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    color: var(--accent);
    margin: 0;
    font-size: 1.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav li a:hover, 
.sidebar-nav li a.active {
    background-color: rgba(0,0,0,0.2);
    border-left-color: var(--accent);
    color: white;
}

.sidebar-nav li a i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

.logout-link {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.logout-link a {
    color: var(--danger) !important;
}

/* Contenu Principal Admin */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.admin-topbar {
    background: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-title h2 {
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
}

.user-info strong {
    color: var(--text-main);
}

.admin-content {
    padding: 30px;
    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: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent); /* Bleu par défaut */
    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: white;
    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;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #f8f9fa;
    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: #fcfcfc;
}

/* 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: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    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: white;
    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: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border: none;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s;
}

.faq-toggle:hover {
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    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: white;
    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: white;
    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: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    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 #ddd;
}

.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: white;
    border: 1px solid #ddd;
    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 #ddd;
    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: #f9f9f9;
    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 #ddd;
    border-radius: 6px;
}

.map-container {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    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 #ddd;
}

.disk-item:last-child {
    border-bottom: none;
}

.disk-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.disk-bar {
    background-color: #f9f9f9;
    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 #ddd;
}

.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 #f0f0f0;
}

.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: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    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: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    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: #f9f9f9;
}

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;
    }
}

/* =========================================
   DARK THEME SUPPORT
   ========================================= */
[data-theme="dark"] {
    --p-primary: #0f172a;
    --p-accent: #60a5fa;
    --p-accent-hover: #3b82f6;
    --p-accent-glow: rgba(96,165,250,0.25);
    --p-accent-soft: rgba(96,165,250,0.15);
    --p-bg-page: #0f172a;
    --p-bg-card: #1e293b;
    --p-bg-hover: rgba(255,255,255,0.05);
    --p-bg-input: #1e293b;
    --p-text: #e2e8f0;
    --p-text-secondary: #94a3b8;
    --p-text-muted: #64748b;
    --p-border: #334155;
    --p-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --p-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --p-shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --p-success: #34d399;
    --p-success-soft: rgba(52,211,153,0.15);
    --p-danger: #f87171;
    --p-danger-soft: rgba(248,113,113,0.15);
    --p-warning: #fbbf24;
    --p-warning-soft: rgba(251,191,36,0.15);
    --p-info: #38bdf8;
    --p-info-soft: rgba(56,189,248,0.15);
    --bg-page: #0f172a;
    --bg-card: #1e293b;
    --text-main: #e2e8f0;
    --text-light: #94a3b8;
    --border: #334155;
}

[data-theme="dark"] body {
    background: var(--p-bg-page);
    color: var(--p-text);
}

[data-theme="dark"] .p-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-right-color: #334155;
}

[data-theme="dark"] .p-topbar {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-theme="dark"] .p-content {
    background: #0f172a;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] table thead {
    background: #0f172a;
}

[data-theme="dark"] table th {
    color: #94a3b8;
    border-bottom-color: #334155;
}

[data-theme="dark"] table td {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

[data-theme="dark"] table tr:hover {
    background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus {
    background: #1e293b;
}

[data-theme="dark"] .alert-success { background: rgba(52,211,153,0.1); color: #6ee7b7; border-color: rgba(52,211,153,0.3); }
[data-theme="dark"] .alert-danger { background: rgba(248,113,113,0.1); color: #fca5a5; border-color: rgba(248,113,113,0.3); }
[data-theme="dark"] .alert-warning { background: rgba(251,191,36,0.1); color: #fde68a; border-color: rgba(251,191,36,0.3); }
[data-theme="dark"] .alert-info { background: rgba(56,189,248,0.1); color: #7dd3fc; border-color: rgba(56,189,248,0.3); }

[data-theme="dark"] code {
    background: #0f172a;
    color: #c084fc;
    border-color: #334155;
}

[data-theme="dark"] .badge-primary { background: rgba(96,165,250,0.2); color: #93bbfd; }
[data-theme="dark"] .badge-success { background: rgba(52,211,153,0.2); color: #6ee7b7; }
[data-theme="dark"] .badge-danger { background: rgba(248,113,113,0.2); color: #fca5a5; }
[data-theme="dark"] .badge-warning { background: rgba(251,191,36,0.2); color: #fde68a; }

[data-theme="dark"] .p-user-dropdown {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .p-user-dropdown a {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

[data-theme="dark"] .p-user-dropdown a:hover {
    background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .monitoring-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .chart-box {
    background: #1e293b;
    border-color: #334155;
}

/* =========================================
   LANGUAGE SELECTOR
   ========================================= */
.p-lang-selector {
    position: relative;
}

.p-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--p-border, #e2e8f0);
    border-radius: var(--p-radius, 6px);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--p-text, #1e293b);
    transition: all 0.2s;
}

.p-lang-btn:hover {
    border-color: var(--p-accent, #3b82f6);
    background: var(--p-bg-hover, rgba(0,0,0,0.04));
}

.p-lang-flag { font-size: 1.1rem; }
.p-lang-code { font-weight: 600; font-size: 0.75rem; }

.p-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--p-bg-card, #fff);
    border: 1px solid var(--p-border, #e2e8f0);
    border-radius: var(--p-radius, 6px);
    box-shadow: var(--p-shadow-lg, 0 8px 24px rgba(0,0,0,0.15));
    min-width: 160px;
    z-index: 1100;
    overflow: hidden;
}

.p-lang-dropdown.open { display: block; }

.p-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--p-text, #1e293b);
    text-decoration: none;
    transition: background 0.15s;
}

.p-lang-option:hover { background: var(--p-bg-hover, rgba(0,0,0,0.04)); }
.p-lang-option.active { background: var(--p-accent-soft, rgba(59,130,246,0.1)); font-weight: 600; }

/* =========================================
   THEME TOGGLE
   ========================================= */
.p-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--p-border, #e2e8f0);
    background: none;
    cursor: pointer;
    color: var(--p-text, #1e293b);
    font-size: 1rem;
    transition: all 0.2s;
}

.p-theme-toggle:hover {
    border-color: var(--p-accent, #3b82f6);
    background: var(--p-bg-hover, rgba(0,0,0,0.04));
    color: var(--p-accent, #3b82f6);
}

/* =========================================
   SMOOTH THEME TRANSITION
   ========================================= */
*, *::before, *::after {
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
    .p-sidebar, .p-topbar, .p-topbar-actions, .p-lang-selector, .p-theme-toggle,
    .p-user-menu-wrapper, .p-nav-divider, .btn, button, nav, aside {
        display: none !important;
    }
    .p-main { margin: 0; padding: 0; }
    .p-content { padding: 0; }
    body { background: white; color: black; font-size: 12pt; }
    .stat-card, .card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
    table { border-collapse: collapse; }
    table th, table td { border: 1px solid #999; padding: 6px; }
    a { text-decoration: none; color: inherit; }
    .badge { border: 1px solid #999; }
}