/* Admin Panel Styles - ARSP NGO */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0d5c3a;
    --primary-dark: #073b24;
    --primary-light: #e8f5e9;
    --secondary: #0a2540;
    --accent: #d97706;
    --danger: #b91c1c;
    --success: #16a34a;
    --warning: #d97706;
    --bg-light: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-light); color: var(--text-main); line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }

/* Admin Layout */
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--secondary);
    color: #fff;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Custom thin scrollbar */
.admin-sidebar::-webkit-scrollbar { width: 5px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 4px; }

.sidebar-brand {
    padding: 18px 20px;
    background: rgba(0,0,0,0.30);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

.sidebar-brand h2 { font-size: 19px; color: #fff; line-height: 1.25; margin-top: 6px; font-weight: 800; letter-spacing: 0.3px; }
.sidebar-brand span { font-size: 12px; color: #94a3b8; display: block; margin-top: 3px; font-weight: 500; }

.sidebar-nav {
    padding: 10px 0 24px;
    flex: 1;
}

.nav-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 14px 20px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--primary); }
.nav-item.active { background: rgba(13,92,58,0.40); color: #fff; border-left-color: #22c55e; font-weight: 700; }
.nav-item i { width: 22px; text-align: center; font-size: 15px; }

/* Main Content */
.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.admin-topbar {
    background: #fff;
    padding: 0 28px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-sm);
}

.topbar-title { font-size: 20px; font-weight: 700; color: var(--secondary); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.admin-content { padding: 28px; flex: 1; }

/* Cards / Widgets */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}

.stat-info h3 { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.stat-info p { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-main); }
.form-control {
    width: 100%; padding: 9px 14px; font-size: 14px;
    border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
    font-family: inherit; transition: border-color 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,92,58,0.12); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 7px; padding: 9px 20px; font-weight: 600; font-size: 14px;
    border-radius: var(--radius-sm); cursor: pointer; border: none;
    font-family: inherit; transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #07192b; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: #f8fafc; padding: 11px 14px; text-align: left; font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border-color); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.data-table tr:hover td { background: #fafafa; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #1d4ed8; }

/* Alert Messages */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

/* Page Header */
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 { font-size: 24px; color: var(--secondary); }

/* Login Page */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex; align-items: center; justify-content: center;
}

.login-box {
    background: #fff; border-radius: var(--radius-lg);
    padding: 40px; width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h2 { color: var(--secondary); font-size: 22px; margin-top: 10px; }
.login-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

textarea.form-control { resize: vertical; min-height: 120px; }

/* Initiative Card Badges (admin preview) */
.init-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; background: #e2e8f0; color: #475569; }
.init-badge.gold { background: #fef3c7; color: #92400e; }
.init-badge.green { background: #dcfce7; color: #15803d; }
.init-badge.purple { background: #ede9fe; color: #6d28d9; }
