/* ========================================
   BIG TALENTS - ADMIN PANEL CSS
   ======================================== */

:root {
    --primary: #f5a800;
    --primary-dark: #d4900a;
    --secondary: #2c3e50;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --bg: #f0f2f8;
    --sidebar-w: 260px;
    --white: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: var(--bg); color: var(--text); font-size: 14px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* LAYOUT */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: var(--sidebar-w); background: var(--secondary);
    position: fixed; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column; z-index: 100;
    overflow-y: auto;
}
.admin-main {
    flex: 1; margin-left: var(--sidebar-w);
    display: flex; flex-direction: column; min-height: 100vh;
}

/* SIDEBAR */
.sidebar-brand {
    padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 12px;
}
.sidebar-brand img { height: 40px; }
.sidebar-brand span {
    color: var(--white); font-weight: 800; font-size: 0.9rem; line-height: 1.2;
}
.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section-title {
    font-size: 0.68rem; font-weight: 900; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,0.35);
    padding: 12px 10px 6px;
}
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px; margin-bottom: 2px;
    color: rgba(255,255,255,0.7); font-weight: 600; font-size: 0.88rem;
    transition: all 0.2s ease;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(245,168,0,0.2); color: var(--primary);
}
.sidebar-link svg { flex-shrink: 0; }
.sidebar-footer {
    padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-footer a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    color: rgba(255,255,255,0.5); font-size: 0.88rem;
    transition: all 0.2s ease;
}
.sidebar-footer a:hover { color: var(--danger); background: rgba(231,76,60,0.1); }

/* TOPBAR */
.admin-topbar {
    background: var(--white); padding: 0 32px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50;
}
.topbar-left h2 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.topbar-left p { font-size: 0.78rem; color: var(--text-light); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); padding: 8px 14px; border-radius: 40px;
}
.topbar-user span { font-weight: 700; font-size: 0.88rem; }
.user-avatar {
    width: 34px; height: 34px; background: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.9rem; color: var(--secondary);
}

/* CONTENT */
.admin-content { padding: 32px; flex: 1; }

/* CARDS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: var(--white); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 16px;
    border-left: 4px solid transparent;
}
.stat-card.primary { border-left-color: var(--primary); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.info { border-left-color: var(--info); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card.primary .stat-icon { background: rgba(245,168,0,0.1); color: var(--primary); }
.stat-card.success .stat-icon { background: rgba(46,204,113,0.1); color: var(--success); }
.stat-card.info .stat-icon { background: rgba(52,152,219,0.1); color: var(--info); }
.stat-card.warning .stat-icon { background: rgba(243,156,18,0.1); color: var(--warning); }
.stat-info { flex: 1; }
.stat-value { font-size: 1.8rem; font-weight: 900; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }

/* PANELS */
.panel {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px;
}
.panel-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.panel-title { font-weight: 800; font-size: 1rem; color: var(--text); }
.panel-body { padding: 24px; }

/* TABLE */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left; padding: 12px 16px;
    background: var(--bg); font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbff; }

/* BADGES */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
}
.badge-success { background: rgba(46,204,113,0.12); color: #27ae60; }
.badge-warning { background: rgba(243,156,18,0.12); color: #d68910; }
.badge-danger { background: rgba(231,76,60,0.12); color: #c0392b; }
.badge-info { background: rgba(52,152,219,0.12); color: #2471a3; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; border: none;
    font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s ease;
}
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #1a2535; }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c0392b; }
.btn-outline {
    background: transparent; border: 1.5px solid var(--border); color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: var(--text); }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-family: 'Nunito', sans-serif; font-size: 0.9rem; color: var(--text);
    background: var(--white); transition: all 0.2s ease;
    appearance: none;
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245,168,0,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* ALERTS */
.alert {
    padding: 14px 18px; border-radius: 10px; margin-bottom: 20px;
    font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(46,204,113,0.1); color: #27ae60; border: 1px solid rgba(46,204,113,0.2); }
.alert-error { background: rgba(231,76,60,0.1); color: #c0392b; border: 1px solid rgba(231,76,60,0.2); }
.alert-warning { background: rgba(243,156,18,0.1); color: #d68910; border: 1px solid rgba(243,156,18,0.2); }
.alert-info { background: rgba(52,152,219,0.1); color: #2471a3; border: 1px solid rgba(52,152,219,0.2); }

/* LOGIN */
.login-page {
    min-height: 100vh; background: linear-gradient(135deg, var(--secondary), #1a2535);
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
    background: var(--white); border-radius: 20px; padding: 48px 40px;
    width: 100%; max-width: 420px; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { height: 70px; margin: 0 auto 12px; }
.login-logo h1 { font-size: 1.1rem; font-weight: 900; color: var(--text); }
.login-logo p { font-size: 0.82rem; color: var(--text-light); }
.login-card .form-label { font-size: 0.88rem; }
.login-card .form-control { padding: 12px 16px; }
.login-card .btn { width: 100%; justify-content: center; padding: 13px; margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
}
