/* ============================================
   WarunKlik - Admin Panel Stylesheet
   File: admin/assets/css/admin.css
   Tema: Gelap (dark mode)
   ============================================ */

:root {
    --adm-primary: #6666FF;
    --adm-primary-dark: #4d4dd1;
    --adm-bg: #0f172a;
    --adm-bg-card: #1e293b;
    --adm-bg-sidebar: #0a0f1e;
    --adm-border: #334155;
    --adm-text: #e2e8f0;
    --adm-text-muted: #94a3b8;
    --adm-success: #10b981;
    --adm-danger: #ef4444;
    --adm-warning: #f59e0b;
    --adm-info: #3b82f6;
    --adm-sidebar-width: 250px;
    --adm-header-height: 60px;
    --adm-radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--adm-bg);
    color: var(--adm-text);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--adm-primary); text-decoration: none; }
a:hover { color: var(--adm-primary-dark); }

/* ============================================
   LOGIN PAGE
   ============================================ */
.adm-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 20px;
}

.adm-login-card {
    background: var(--adm-bg-card);
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--adm-border);
}

.adm-login-brand {
    text-align: center;
    margin-bottom: 24px;
}

.adm-login-brand-icon {
    width: 60px;
    height: 60px;
    background: var(--adm-primary);
    color: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 12px;
}

.adm-login-brand-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--adm-text);
}

.adm-login-brand-text span { color: var(--adm-primary); }

.adm-login-subtitle {
    font-size: 12px;
    color: var(--adm-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adm-login-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.adm-login-desc {
    font-size: 13px;
    color: var(--adm-text-muted);
    margin: 0 0 24px 0;
}

/* ============================================
   FORM
   ============================================ */
.adm-form-group { margin-bottom: 16px; }

.adm-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-text);
    margin-bottom: 6px;
}

.adm-form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--adm-bg);
    border: 1.5px solid var(--adm-border);
    border-radius: 8px;
    color: var(--adm-text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s ease;
}

.adm-form-control:focus {
    outline: none;
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px rgba(102, 102, 255, 0.2);
}

/* ============================================
   BUTTON
   ============================================ */
.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--adm-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.adm-btn:hover {
    background: var(--adm-primary-dark);
    transform: translateY(-1px);
}

.adm-btn-secondary {
    background: var(--adm-border);
    color: var(--adm-text);
}

.adm-btn-secondary:hover {
    background: #475569;
}

.adm-btn-danger {
    background: var(--adm-danger);
}

.adm-btn-danger:hover {
    background: #dc2626;
}

.w-100 { width: 100%; }

/* ============================================
   ALERT
   ============================================ */
.adm-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.adm-alert-success { background: rgba(16, 185, 129, 0.15); border-left: 4px solid var(--adm-success); color: #6ee7b7; }
.adm-alert-danger { background: rgba(239, 68, 68, 0.15); border-left: 4px solid var(--adm-danger); color: #fca5a5; }
.adm-alert-warning { background: rgba(245, 158, 11, 0.15); border-left: 4px solid var(--adm-warning); color: #fcd34d; }
.adm-alert-info { background: rgba(59, 130, 246, 0.15); border-left: 4px solid var(--adm-info); color: #93c5fd; }

/* ============================================
   LAYOUT
   ============================================ */
.adm-wrapper {
    display: flex;
    min-height: 100vh;
}

.adm-sidebar {
    width: var(--adm-sidebar-width);
    background: var(--adm-bg-sidebar);
    border-right: 1px solid var(--adm-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.adm-sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: var(--adm-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.adm-sidebar-brand-text {
    font-weight: 800;
    font-size: 16px;
    color: var(--adm-text);
}

.adm-sidebar-brand-text span { color: var(--adm-primary); }

.adm-sidebar-menu {
    list-style: none;
    padding: 12px 8px;
    margin: 0;
}

.adm-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--adm-text-muted);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.15s ease;
}

.adm-sidebar-menu a:hover {
    background: rgba(102, 102, 255, 0.1);
    color: var(--adm-primary);
}

.adm-sidebar-menu a.active {
    background: var(--adm-primary);
    color: white;
}

.adm-sidebar-section {
    padding: 16px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
}

.adm-main {
    flex: 1;
    margin-left: var(--adm-sidebar-width);
    padding-top: var(--adm-header-height);
}

.adm-header {
    position: fixed;
    top: 0;
    left: var(--adm-sidebar-width);
    right: 0;
    height: var(--adm-header-height);
    background: var(--adm-bg-card);
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 90;
}

.adm-header-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

.adm-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.adm-header-avatar {
    width: 32px;
    height: 32px;
    background: var(--adm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.adm-container {
    padding: 24px;
    max-width: 1400px;
}

/* ============================================
   CARD
   ============================================ */
.adm-card {
    background: var(--adm-bg-card);
    border-radius: var(--adm-radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--adm-border);
}

.adm-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--adm-text);
}

/* ============================================
   GRID
   ============================================ */
.adm-grid {
    display: grid;
    gap: 16px;
}

.adm-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.adm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.adm-grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.adm-stat-card {
    background: var(--adm-bg-card);
    border-radius: var(--adm-radius);
    padding: 20px;
    border: 1px solid var(--adm-border);
}

.adm-stat-label {
    font-size: 12px;
    color: var(--adm-text-muted);
    margin-bottom: 8px;
}

.adm-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--adm-text);
}

.adm-stat-sub {
    font-size: 11px;
    color: var(--adm-text-muted);
    margin-top: 4px;
}

/* ============================================
   TABLE
   ============================================ */
.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.adm-table thead {
    background: var(--adm-bg);
}

.adm-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--adm-text-muted);
    border-bottom: 1px solid var(--adm-border);
}

.adm-table td {
    padding: 12px;
    border-bottom: 1px solid var(--adm-border);
    color: var(--adm-text);
}

.adm-table tr:hover td {
    background: rgba(102, 102, 255, 0.05);
}

/* ============================================
   BADGE
   ============================================ */
.adm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.adm-badge-success { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.adm-badge-danger { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.adm-badge-warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.adm-badge-primary { background: rgba(102, 102, 255, 0.2); color: #a5b4fc; }

/* ============================================
   UTILITY
   ============================================ */
.adm-flex { display: flex; }
.adm-flex-between { display: flex; align-items: center; justify-content: space-between; }
.adm-flex-center { display: flex; align-items: center; justify-content: center; }
.adm-gap-8 { gap: 8px; }
.adm-gap-16 { gap: 16px; }
.adm-text-muted { color: var(--adm-text-muted); }
.adm-text-center { text-align: center; }
.adm-mb-16 { margin-bottom: 16px; }
.adm-mt-16 { margin-top: 16px; }