* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #2196F3;
    --primary-dark: #1565C0;
    --secondary: #00C853;
    --danger: #FF5252;
    --warning: #FFA000;
    --bg-main: #F8FAFF;
    --white: #FFFFFF;
    --text-dark: #2B3674;
    --text-gray: #A3AED0;
    --border: #E0E5F2;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.admin-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Improved Header --- */
.top-header {
    background: #FFFFFF;
    padding: 0 50px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.logo-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
}

.brand-name {
    font-weight: 800;
    font-size: 19px;
    color: var(--text-dark);
}

/* Navigation */
.header-nav {
    display: flex;
    list-style: none;
    gap: 8px;
}

.header-nav li a {
    text-decoration: none;
    color: var(--text-gray);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.header-nav li.active a {
    color: var(--primary);
    background: #F0F7FF;
}

.header-nav li a:hover:not(.active) {
    color: var(--text-dark);
    background: #F8FAFC;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    background: #F4F7FE;
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    border: 1px solid transparent;
}

.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 100%;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.admin-profile img { width: 32px; height: 32px; border-radius: 8px; }
.profile-info strong { font-size: 12px; display: block; }
.logout-link { color: var(--danger); font-size: 10px; text-decoration: none; font-weight: 700; }

/* Common Layout */
.main-content {
    padding: 40px 50px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.content-header { margin-bottom: 30px; }
.content-header h1 { font-size: 26px; font-weight: 800; color: var(--text-dark); }

/* Common Cards */
.data-card {
    background: white;
    padding: 30px;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Common Tables */
.table-container { border-radius: 18px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead { background: #F8FAFF; }
th { padding: 15px 20px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-gray); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); }
td { padding: 18px 20px; border-bottom: 1px solid #F1F4F9; font-size: 14px; font-weight: 500; }

/* Status Badges */
.badge-status { padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.badge-status.active { background: #E6F9EE; color: var(--secondary); }
.badge-status.pending { background: #FFF9E6; color: var(--warning); }
.badge-status.danger { background: #FFF0F0; color: var(--danger); }

/* Buttons */
.btn-action {
    padding: 10px 20px; border-radius: 10px; border: none; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-action.primary { background: var(--primary); color: white; }
.btn-action.primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Modals */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(6px); justify-content: center; align-items: center; }
.modal-content { background: white; padding: 35px; border-radius: 30px; width: 90%; max-width: 450px; animation: slideUp 0.3s ease-out; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
