/* assets/css/admin.css - Modern Minimalist Admin Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --admin-bg: #f1f5f9;
    --admin-sidebar: #0b1d33;
    --admin-sidebar-active: #152e4d;
    --admin-primary: #0d9488;
    --admin-card: #ffffff;
    --admin-border: #e2e8f0;
    --admin-text: #1e293b;
    --admin-text-muted: #64748b;
}

body.admin-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: var(--admin-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.admin-brand {
    padding: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-brand span {
    color: var(--admin-primary);
}
.admin-nav {
    padding: 20px 0;
    flex-grow: 1;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-nav a:hover, .admin-nav a.active {
    background: var(--admin-sidebar-active);
    color: white;
    border-left: 4px solid var(--admin-primary);
}
.admin-footer-link {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.admin-topbar {
    background: white;
    height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--admin-border);
}
.admin-topbar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}
.admin-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}
.admin-content {
    padding: 32px;
    flex-grow: 1;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}
.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--admin-text);
}

/* Data Table */
.data-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.data-card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--admin-border);
}
.data-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.admin-table th {
    background: #f8fafc;
    padding: 14px 20px;
    font-weight: 600;
    color: var(--admin-text-muted);
    border-bottom: 1px solid var(--admin-border);
}
.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}
.admin-table tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-danger { background: #fee2e2; color: #b91c1c; }

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    font-size: 0.95rem;
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
