/* =================================
   Common Styles (Navbar, Menu, Footer)
   ================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: #0d1b2a; color: #f0f0f0; overflow-x: hidden; }
#dna-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.15; }

.navbar { background: rgba(20, 20, 40, 0.65); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); height: 60px; width: 90%; max-width: 1400px; position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; }
.navbar.scrolled { top: 10px; background: rgba(25, 25, 45, 0.75); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); }
.nav-left, .nav-right { display: flex; align-items: center; width: 50%; }
.nav-left { justify-content: flex-end; padding-right: 150px; }
.nav-right { justify-content: flex-start; padding-left: 150px; }
.nav-item { padding: 0 25px; font-size: 16px; font-weight: 500; cursor: pointer; color: #e0e0e0; text-decoration: none; height: 60px; display: flex; align-items: center; transition: color 0.3s; }
.nav-item:hover, .dropdown:hover .nav-item > button { color: #00d65b; }
.nav-item.active {
             border-bottom: 2px solid #00d65b;
             padding-bottom: 2px;
        }
.dropdown { position: relative; display: inline-block; }
.dropdown .nav-item { padding: 0; }
.dropdown > .nav-item > button { background: none; border: none; color: inherit; font-size: inherit; font-family: inherit; font-weight: inherit; padding: 0 25px; height: 60px; cursor: pointer; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(30, 35, 60, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 10px;
    top: 100%; /* CHANGED: Positions dropdown just below the parent item. */
    padding-top: 10px; /* ADDED: Creates visual space inside the menu instead of outside. */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dropdown-content a { color: #e0e0e0; padding: 12px 16px; text-decoration: none; display: block; font-size: 15px; transition: background-color 0.3s, color 0.3s; }
.dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.08); color: #00d65b; }
.dropdown:hover .dropdown-content { display: block; }
.logo-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 101; }
.logo-image { width: 200px; max-height: 55px; height: auto; object-fit: contain; }

.mobile-menu-button { display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #e0e0e0; font-size: 24px; cursor: pointer; z-index: 102; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: rgba(30, 30, 50, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 99; padding-top: 70px; transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); box-shadow: -5px 0 20px rgba(0, 0, 0, 0.25); border-left: 1px solid rgba(255, 255, 255, 0.12); }
.mobile-menu.active { right: 0; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 98; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-item, .mobile-menu-title { display: block; padding: 15px 30px; font-size: 18px; font-weight: 500; color: #e0e0e0; text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.mobile-menu-title { font-weight: 600; color: #00d65b; padding-bottom: 5px; }
.mobile-menu-item.sub-item { padding-left: 45px; font-size: 16px; color: #c0c0d0; }
.mobile-menu-item.active, .mobile-menu-item:hover { background-color: rgba(255, 255, 255, 0.1); color: #00d65b; }

footer { background-color: #050510; padding: 60px 5% 30px; margin-top: 60px; border-top: 1px solid rgba(0, 214, 91, 0.2); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-section { flex: 1; min-width: 200px; }
.footer-section h4 { color: #00d65b; margin-bottom: 25px; font-size: 18px; font-weight: 600; }
.footer-section ul { list-style-type: none; padding: 0; }
.footer-section li { margin-bottom: 12px; }
.footer-section a { color: #b0b0c0; text-decoration: none; transition: color 0.3s, padding-left 0.3s; }
.footer-section a:hover { color: #00d65b; padding-left: 5px; }
.copyright { text-align: center; margin-top: 50px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* =================================
   Performance Page-Specific Styles
   ================================= */
main { padding: 120px 20px 40px; }
.page-header { text-align: center; max-width: 800px; margin: 0 auto 80px; }
.page-header h1 { font-size: 48px; color: #00d65b; margin-bottom: 20px; }
.page-header p { font-size: 18px; color: #c0c0d0; line-height: 1.6; }
.kpi-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 80px; }
.kpi-card { background-color: rgba(13, 27, 42, 0.75); backdrop-filter: blur(10px); padding: 30px; border-radius: 15px; text-align: center; border: 1px solid rgba(0, 214, 91, 0.15); }
.kpi-card .icon { font-size: 48px; color: #00d65b; margin-bottom: 20px; }
.kpi-card .value { font-size: 40px; font-weight: 700; color: #f0f0f0; }
.kpi-card .label { font-size: 16px; color: #c0c0d0; }
.agent-performance-section { max-width: 1200px; margin: 0 auto 80px; }
.agent-performance-section h2 { font-size: 36px; text-align: center; margin-bottom: 20px; color: #e0e0e0; }
.agent-performance-section .section-description { font-size: 16px; text-align: center; max-width: 700px; margin: 0 auto 50px; color: #c0c0d0; line-height: 1.6;}
.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.chart-card { background-color: rgba(13, 27, 42, 0.75); backdrop-filter: blur(10px); padding: 30px; border-radius: 15px; border: 1px solid rgba(0, 214, 91, 0.15); }
.chart-card h3 { font-size: 20px; margin-bottom: 20px; text-align: center; }
.validation-section { background-color: #101d35; border-radius: 15px; padding: 40px; text-align: center; border: 1px solid #2a3a5e; max-width: 1200px; margin: 0 auto; }
.validation-section h2 { color: #00d65b; margin-bottom: 15px; }
.validation-section p { font-size: 16px; line-height: 1.7; max-width: 800px; margin: 0 auto 20px; color: #c0c0d0;}
.validation-logos { display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 20px; flex-wrap: wrap; }
.validation-logos span { font-size: 18px; font-weight: 600; color: #a0a0b0; opacity: 0.7; }

/* Media Queries */
@media (max-width: 768px) { .mobile-menu-button { display: block; } .nav-left, .nav-right { display: none; } .logo-container { left: 20px; transform: translate(0, -50%); } .page-header h1 {font-size: 36px;} }
@media (max-width: 576px) { main { padding: 80px 10px 20px; } }
