/* ========================================
   JKE POLIMAS - Admin Panel Styles
   Colorful & Cheerful Theme
   ======================================== */

/* CSS Variables - Rainbow Colors */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --secondary-light: #f472b6;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --success-color: #10b981;
    --success-light: #34d399;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --info-light: #22d3ee;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --pink: #ec4899;
    --pink-light: #f472b6;
    --orange: #f97316;
    --orange-light: #fb923c;
    --teal: #14b8a6;
    --teal-light: #2dd4bf;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-sidebar: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light-gray: #94a3b8;
    --text-white: #ffffff;
    --border-color: rgba(0, 0, 0, 0.06);
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 25%, #dbeafe 50%, #f0fdfa 75%, #fef3c7 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   Animated Background
   ======================================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(249, 115, 22, 0.08) 0%, transparent 40%);
    animation: bgFloat 25s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(2%, 2%) rotate(1deg); }
}

.electric-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.electric-lines::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 50%;
    filter: blur(80px);
    top: 10%;
    left: 5%;
    animation: floatShape 20s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
}

.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: 
        radial-gradient(circle, rgba(236, 72, 153, 0.4) 2px, transparent 2px),
        radial-gradient(circle, rgba(139, 92, 246, 0.4) 2px, transparent 2px);
    background-size: 80px 80px, 100px 100px;
}

.particles { position: absolute; width: 100%; height: 100%; }

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 50%;
    opacity: 0.5;
    animation: particleRise 18s infinite;
}

@keyframes particleRise {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container { width: 100%; max-width: 420px; }

.login-box {
    background: var(--card-bg);
    border: none;
    border-radius: 28px;
    padding: 45px;
    box-shadow: var(--card-shadow), 0 0 60px rgba(236, 72, 153, 0.1);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f43f5e, #f97316, #fbbf24, #10b981, #06b6d4, #8b5cf6, #ec4899);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header .logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.login-header .logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: conic-gradient(from 0deg, #f43f5e, #f97316, #fbbf24, #10b981, #06b6d4, #8b5cf6, #ec4899, #f43f5e);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.5;
    animation: logoSpin 5s linear infinite;
}

@keyframes logoSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-header .logo-icon {
    font-size: 55px;
    background: linear-gradient(135deg, #f43f5e, #f97316, #fbbf24, #10b981, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.9rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.login-form .form-group { margin-bottom: 22px; }

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.login-form label i {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.password-input { position: relative; }
.password-input input { padding-right: 50px; }

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.toggle-password:hover {
    color: var(--purple);
    transform: translateY(-50%) scale(1.1);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.login-footer a {
    color: var(--text-gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.login-footer a:hover {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Sidebar - Colorful Gradient
   ======================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 270px;
    height: 100vh;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #f43f5e, #f97316, #fbbf24, #10b981, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header .logo i {
    font-size: 1.6rem;
    animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light-gray);
    cursor: pointer;
    padding: 5px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.3), transparent);
    color: var(--text-white);
    border-left-color: var(--pink);
}

.nav-item i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-item.text-danger { color: var(--danger-color); }
.nav-item.text-danger:hover { background: rgba(239, 68, 68, 0.1); }

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    margin-left: 270px;
    min-height: 100vh;
    padding: 25px 30px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--card-bg);
    border: none;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f43f5e, #f97316, #fbbf24, #10b981, #06b6d4, #8b5cf6, #ec4899);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    font-size: 1.3rem;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
}

.admin-info i {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Stats Section - Rainbow Cards
   ======================================== */
.stats-section { margin-bottom: 30px; }

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

.stat-card {
    background: var(--card-bg);
    border: none;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #f43f5e, #f97316); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #fbbf24, #f97316); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }

.stat-card:hover { transform: translateY(-5px); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.bg-primary { background: linear-gradient(135deg, #f43f5e, #f97316); }
.stat-icon.bg-success { background: linear-gradient(135deg, #10b981, #06b6d4); }
.stat-icon.bg-warning { background: linear-gradient(135deg, #fbbf24, #f97316); }
.stat-icon.bg-info { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

.stat-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.9rem;
    color: var(--text-dark);
}

.stat-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ========================================
   Content Sections
   ======================================== */
.content-section {
    background: var(--card-bg);
    border: none;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f43f5e, #f97316, #fbbf24, #10b981, #06b6d4, #8b5cf6, #ec4899);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.section-header h2 i {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-footer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

/* Quick Actions */
.quick-actions { margin-bottom: 30px; }

.quick-actions h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.quick-actions h2 i {
    background: linear-gradient(135deg, var(--orange), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ========================================
   Tables
   ======================================== */
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td { color: var(--text-dark); }

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(236, 72, 153, 0.03));
}

.icon-preview {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-preview i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-preview img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.action-btns { display: flex; gap: 8px; }

/* ========================================
   Forms - Colorful
   ======================================== */
.admin-form { max-width: 800px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group label i {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-dark);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-light-gray); }

.form-select { cursor: pointer; }

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

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.form-hint a {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.required { color: var(--danger-color); }

.form-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(236, 72, 153, 0.03));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
}

.form-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--purple);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

/* Icon Type Selector */
.icon-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.radio-card { flex: 1; cursor: pointer; }
.radio-card input { display: none; }

.radio-content {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.radio-card input:checked + .radio-content {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

.radio-content i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: block;
}

.radio-content span { color: var(--text-dark); font-weight: 500; }

.icon-section { margin-top: 25px; }

.icon-picker-wrapper { display: flex; gap: 12px; }
.icon-picker { flex: 1; }

.icon-preview-box {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-preview-box i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-icons { margin-top: 18px; }
.quick-icons p { color: var(--text-gray); margin-bottom: 12px; font-size: 0.9rem; }

.icon-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.icon-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--purple);
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover,
.icon-btn.active {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-color: transparent;
    color: white;
    transform: scale(1.1);
}

/* File Upload */
.file-upload-wrapper { position: relative; }

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(236, 72, 153, 0.03));
}

.file-label i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.file-label span { color: var(--text-dark); font-weight: 500; }
.file-label small { color: var(--text-gray); margin-top: 6px; }

.custom-icon-preview {
    margin-top: 18px;
    position: relative;
    display: inline-block;
}

.custom-icon-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 14px;
    border: 2px solid var(--border-color);
}

.remove-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    background: var(--danger-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.remove-icon:hover { transform: scale(1.1); }

.sort-input {
    width: 65px;
    text-align: center;
    padding: 8px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--success-color), var(--teal));
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* ========================================
   Buttons - Rainbow
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    border-color: transparent;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--orange), var(--accent-light));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), var(--teal));
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), var(--teal));
    color: white;
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.15));
    color: var(--success-color);
}

.badge-secondary {
    background: var(--bg-light);
    color: var(--text-gray);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 16px 22px;
    border-radius: 14px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--orange);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--card-bg);
    border: none;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f43f5e, #f97316, #fbbf24, #10b981, #06b6d4, #8b5cf6, #ec4899);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: var(--bg-light);
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
}

.modal-body { padding: 25px; }

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-gray); }
.d-block { display: block; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .main-content { margin-left: 0; }
    .mobile-toggle { display: block; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; gap: 15px; }
    .header-right { width: 100%; }
    .header-right .btn { width: 100%; justify-content: center; }
    .login-box { padding: 30px 25px; }
}
