:root {
    /* Premium "Pink Midnight" Matte Theme */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Backgrounds: Deep Dark Matte (Fixing "too bright") */
    --darker-bg: #0f172a;
    /* Slate 900 - Main Background */
    --dark-bg: #1e293b;
    /* Slate 800 - Cards (Much darker than before) */
    --card-bg: #1e293b;
    /* Alias */
    --light-bg: #334155;
    /* Slate 700 - Inputs/Secondary */

    /* Elegant Dark Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --text-color: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --text-secondary: #64748b;
    /* Slate 500 */

    /* Accent: Pink Tinge #ff7eb3 */
    --accent-color: #ff7eb3;
    --accent-dim: rgba(255, 126, 179, 0.7);
    --accent-surface: rgba(255, 126, 179, 0.1);
    --accent-glow: rgba(255, 126, 179, 0.15);

    /* Functional Colors */
    --success: #10b981;
    /* Emerald 500 */
    --danger: #ef4444;
    /* Red 500 */
    --warning: #f59e0b;
    /* Amber 500 */

    /* Effects */
    --glass-bg: rgba(15, 23, 42, 0.95);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-body);
    background-color: var(--darker-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Subtle pink tinge gradient */
    background-image: radial-gradient(circle at top right, rgba(255, 126, 179, 0.03), transparent 40%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
    color: var(--text-color);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    /* Clean text, no gradient to enable easier reading */
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header & Navbar */
header {
    background-color: var(--darker-bg);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Navigation - Pink Accent Active State */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.nav-menu>a,
.dropdown-trigger {
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-menu>a:hover,
.dropdown-trigger:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-menu>a.active,
.dropdown-trigger.active {
    color: var(--accent-color);
    background-color: var(--accent-surface);
    border: 1px solid rgba(255, 126, 179, 0.1);
}

/* Dropdown */
.dropdown-container {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    min-width: 240px;
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    animation: fadeIn 0.1s ease-out;
}

.dropdown-container::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-container:hover .dropdown-menu {
    display: flex;
}

/* Tab Buttons */
.tab-button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: var(--accent-color);
    background-color: var(--accent-surface);
    /* No border */
}

.dropdown-item {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.dropdown-item.active {
    background-color: var(--accent-surface);
    color: var(--accent-color);
}

/* Cards - Darker Matte */
.stat-card,
.approval-container,
.report-section,
.lost-section,
.management-container,
.log-section,
.user-section,
.add-item-container,
.lost-item-card,
.login-box,
.generator-container {
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.approval-container h2,
.report-section h2,
.lost-section h2,
.management-container h2,
.log-section h2,
.user-section h2,
.generator-container h2 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card i {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    background-color: var(--accent-surface);
    padding: 12px;
    border-radius: 12px;
    display: inline-flex;
}

.stat-card h3,
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 5px 0;
    line-height: 1.1;
}

.stat-card p,
.stat-label {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background-color: var(--darker-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

th {
    font-family: var(--font-heading);
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.02);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-color);
}

/* Buttons */
.btn,
button,
.btn-primary {
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary,
.btn-save,
.btn-search {
    background-color: var(--accent-color);
    color: #0f172a;
    /* Dark text on pink for contrast */
    font-weight: 700;
}

.btn-primary:hover,
.btn-save:hover,
.btn-search:hover {
    background-color: #ff9bc2;
    /* Lighter pink */
}

.btn-approve {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.btn-approve:hover {
    background-color: rgba(16, 185, 129, 0.25);
}

.btn-deny,
.btn-delete-claim {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.btn-deny:hover,
.btn-delete-claim:hover {
    background-color: rgba(239, 68, 68, 0.25);
}

/* Inputs */
input,
select,
textarea {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font-body);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-color);
}

/* Status Badges */
.status-badge,
.status-collected,
.status-pending {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    /* Prevent wrapping */
    display: inline-block;
    min-width: fit-content;
    letter-spacing: 0.05em;
}

.status-collected {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-lost {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Loader */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-items {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Hamburger */
.hamburger {
    display: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--darker-bg);
        flex-direction: column;
        padding-top: 40px;
        border-radius: 0;
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu>a,
    .dropdown-trigger {
        width: 80%;
        justify-content: center;
        margin: 5px 0;
        background: var(--dark-bg);
    }

    .dropdown-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        display: flex;
        width: 80%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
}