:root {
    --admin-white: #ffffff;
    --admin-bg: #f8fafc;
    --admin-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --admin-border: #e2e8f0;
    --admin-dark: #0f172a;
    --admin-muted: #64748b;
    --admin-primary: #2563eb;
    --admin-primary-dark: #1d4ed8;
    --admin-danger: #ef4444;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--admin-dark);
    margin: 0;
    padding-top: 80px;
}

/* Navbar */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--admin-primary);
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: var(--admin-shadow);
    z-index: 1000;
}

.admin-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.admin-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.admin-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-nav-links .nav-link:hover,
.admin-nav-links .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.admin-logout-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--admin-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--admin-primary-dark);
    text-decoration: none;
}

/* Content */
.admin-content {
    margin-left: 0;
    padding: 2rem 0;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: calc(100vh - 70px);
}

.admin-page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--admin-dark);
    letter-spacing: -0.01em;
}

.admin-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--admin-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Forms */
.admin-form-control {
    width: 100%;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.admin-form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.admin-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
    color: var(--admin-muted);
}

/* Buttons */
.admin-btn {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    text-decoration: none;
}

.admin-btn-primary {
    background: var(--admin-primary);
    color: #ffffff;
}

.admin-btn-primary:hover {
    color: #fff;
}

.admin-btn-secondary {
    background: #f1f5f9;
    color: var(--admin-dark);
}

.admin-btn-secondary:hover {
    color: var(--admin-dark);
}

.admin-btn-success {
    background: #10b981;
    color: #fff;
}

.admin-btn-success:hover {
    color: #fff;
}

.admin-btn-danger {
    background: var(--admin-danger);
    color: #fff;
}

.admin-btn-danger:hover {
    color: #fff;
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--admin-border);
}

.admin-table thead {
    background: #f8fafc;
}

.admin-table th {
    padding: 1rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--admin-muted);
    border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

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

.admin-table tbody tr:hover {
    background: #f8fafc;
}

/* Sort links */
.admin-sort-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--admin-muted);
}

.admin-sort-links a {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--admin-dark);
    text-decoration: none;
    font-size: 0.85rem;
}

.admin-sort-links a:hover {
    background: var(--admin-primary);
    color: #ffffff;
}

/* Modal buttons alignment (shared styles) */
#confirm-dialog .admin-btn {
    min-width: 100px;
}