.admin-body { background: #f1f5f9; font-family: 'Poppins', Arial, sans-serif; }
.admin-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 250px; background: linear-gradient(160deg, #0f172a, #1a2540); color: #cbd5e1; flex-shrink: 0;
    padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { color: #fff; font-weight: 800; font-size: 18px; padding: 0 24px 24px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #1e293b; margin-bottom: 14px; }
.admin-sidebar nav { display: flex; flex-direction: column; }
.admin-sidebar nav a {
    padding: 13px 24px; color: #94a3b8; font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 12px;
    border-left: 3px solid transparent; transition: .2s;
}
.admin-sidebar nav a:hover { background: #1e293b; color: #fff; }
.admin-sidebar nav a.active { background: #1e293b; color: #fff; border-left-color: var(--primary); }
.admin-sidebar nav a.logout { margin-top: auto; color: #f87171; }

/* Main */
.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
    background: #fff; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border); font-weight: 600; position: sticky; top: 0; z-index: 10;
}
.sidebar-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }
.admin-content { padding: 28px; }

/* Cards */
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.admin-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.admin-card .ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.admin-card h3 { font-size: 24px; font-weight: 800; }
.admin-card p { font-size: 13px; color: var(--gray); }

.panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.panel-head h2 { font-size: 18px; font-weight: 700; }

/* Table */
.table-responsive { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.admin-table th { background: #f8fafc; font-weight: 700; color: var(--dark-2); white-space: nowrap; }
table.admin-table tr:hover { background: #f8fafc; }
table.admin-table img { width: 50px; height: 36px; object-fit: cover; border-radius: 6px; }

.status-pill { padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; display: inline-block; }
.status-active, .status-completed, .status-paid { background: #dcfce7; color: #16a34a; }
.status-inactive, .status-cancelled { background: #fee2e2; color: #dc2626; }
.status-pending { background: #fef3c7; color: #d97706; }

.action-icons a, .action-icons button { color: var(--gray); margin-right: 10px; font-size: 15px; background: none; border: none; cursor: pointer; }
.action-icons a:hover { color: var(--primary); }
.action-icons .del:hover { color: #dc2626; }

/* Forms */
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form .form-group { margin-bottom: 18px; }
.admin-form label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 7px; }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: var(--primary); }
.admin-form .hint { font-size: 12.5px; color: var(--gray); margin-top: 5px; }
.current-thumb { width: 130px; border-radius: 10px; margin-top: 10px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #16a34a; }
.alert-error { background: #fee2e2; color: #dc2626; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg,#0f172a,#23206b,#4c46c9); padding: 20px; }
.login-box { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-radius: 18px; padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-box h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.login-box p.sub { text-align: center; color: var(--gray); font-size: 13.5px; margin-bottom: 26px; }

@media (max-width: 900px) {
    .admin-sidebar { position: fixed; left: -260px; z-index: 200; transition: .25s; }
    .admin-sidebar.show { left: 0; }
    .sidebar-toggle { display: block; }
    .admin-form .form-row { grid-template-columns: 1fr; }
    .admin-content { padding: 18px; }
    .admin-topbar { padding: 12px 18px; }
}

@media (max-width: 600px) {
    .admin-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .admin-card { padding: 16px 14px; gap: 12px; }
    .admin-card .ic { width: 42px; height: 42px; font-size: 17px; }
    .admin-card h3 { font-size: 20px; }
    .panel { padding: 16px 14px; }
    .panel-head h2 { font-size: 16px; }
    table.admin-table th, table.admin-table td { padding: 9px 10px; font-size: 12.5px; }
    .admin-content { padding: 12px; }
    .login-box { padding: 26px 18px; }
    .login-box h1 { font-size: 19px; }
}

@media (max-width: 380px) {
    .admin-cards { grid-template-columns: 1fr; }
    .admin-card h3 { font-size: 22px; }
}
