/* ---------- Variables ---------- */
:root {
    --primary: #212b46; /* Header color */
    --accent: #bcccdc;
    --bg: #f4f6f8;
    --bg-card: #fff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --radius: 10px;
    --font: "Inter", sans-serif;
}

/* ---------- Base Styles ---------- */
body {
    background: var(--bg);
    font-family: var(--font);
    color: var(--text);
    margin: 0;
}

/* ---------- Header ---------- */
#custom-admin-header {
    background: var(--primary);
    padding: 18px 32px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title a {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.admin-user-tools {
    font-size: 0.95rem;
}

.logout-btn {
    color: #fff;
    margin-left: 16px;
    background: #1e3a5f;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

/* ---------- Layout ---------- */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 40px;
    margin: 40px;
}

/* ---------- Sidebar ---------- */
.sidebar {
    background: var(--bg-card);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: fit-content;
    position: sticky;
    top: 40px;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    color: var(--primary);
}

/* ---------- Main Dashboard ---------- */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-welcome h1 {
    font-size: 2rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.admin-welcome p {
    color: var(--text-light);
    margin: 0;
}

/* ---------- Cards ---------- */
.admin-panels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.admin-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-card h2 {
    font-size: 1.1rem;
    margin: 0 0 14px 0;
    color: var(--primary);
}

.admin-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.admin-card a {
    color: var(--text);
    text-decoration: none;
}

.admin-card a:hover {
    color: var(--primary);
}

.add-link {
    font-size: 0.9rem;
    background: var(--accent);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Recent Actions ---------- */
.recent-actions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    padding: 20px;
    position: sticky;
    top: 40px;
}

.recent-actions h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.recent-actions ul {
    list-style: disc inside;
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

.recent-actions li {
    margin-bottom: 10px;
}
