:root {
    --nav-bg: #0d111d;
    --body-bg: #f8fafc;
    --primary-blue: #2563eb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-dark);
}

/* Navbar Styling */
.navbar {
    background-color: var(--nav-bg);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    height: 70px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-group {
    display: flex;
    gap: 15px;
    font-size: 18px;
    color: #facc15; /* Gold/Yellow for bell */
    cursor: pointer;
}

.notification {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}

.user-pills {
    display: flex;
    gap: 8px;
}

.pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: #334155;
}

.logout-btn {
    color: #f87171;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Content Area */
.content-wrapper {
    padding: 40px 10%;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-header p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

/* Grid and Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
    flex-grow: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: 20px;
}

/* --- Dropdown Menu Styling --- */
.nav-item {
    position: relative;
    padding-bottom: 10px; /* Bridge gap for hover */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 180px;
    padding: 10px 0;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #334155 !important; /* Dark text for light dropdown */
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: #2563eb !important;
}

/* --- Table Styling --- */
.data-table-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #f1f5f9;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-active { background: #dcfce7; color: #166534; }
.badge-role { background: #e0e7ff; color: #3730a3; }

/* --- Form Styling --- */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* --- Global Icon Dropdowns --- */
.icon-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dropdown-container {
    position: relative;
}

.icon-wrapper {
    cursor: pointer;
    font-size: 18px;
    position: relative;
    color: #facc15; /* Gold color from screenshot */
}

/* The Panel */
.dropdown-panel {
    display: none; /* Hidden by default */
    position: absolute;
    top: 40px;
    right: -10px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    color: #1e293b;
    overflow: hidden;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-panel.show {
    display: block;
}

.panel-header {
    padding: 15px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.panel-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    cursor: pointer;
}

.panel-item:hover { background: #f1f5f9; }
.panel-item.unread { border-left: 3px solid #2563eb; background: #eff6ff; }

.panel-item p { font-size: 13px; margin-bottom: 2px; color: #334155; }
.panel-item span { font-size: 12px; color: #64748b; display: block; }
.panel-item small { font-size: 10px; color: #94a3b8; }

.panel-footer {
    padding: 10px;
    text-align: center;
    background: #f8fafc;
}

.panel-footer a {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}