/* ============================================
   ADMIN FEATURES PAGE SPECIFIC STYLES
   WiFiHapa - Admin Dashboard & Features Styles
   ============================================ */
   /* Main Content */
.main-content {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* ----- HERO SECTION ----- */
.admin-hero {
    background: linear-gradient(145deg, #edf4ff 0%, #ffffff 100%);
    padding: 2rem 1.5rem;
    border-radius: 32px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(13, 110, 253, 0.05);
    transition: var(--transition, all 0.3s ease);
}

body.dark .admin-hero {
    background: var(--hero-bg, linear-gradient(145deg, #111827 0%, #1e2538 100%));
}

/* ----- FEATURE CARDS ----- */
.feature-card {
    background: var(--card-bg, white);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition, all 0.25s ease);
    height: 100%;
}

body.dark .feature-card {
    background: var(--card-bg, #1e2538);
    border-color: var(--border-light, rgba(255, 255, 255, 0.05));
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(13, 110, 253, 0.12);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #e8f1ff, #fff3d6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

body.dark .feature-icon {
    background: linear-gradient(135deg, #1a2a4a, #2a2a1c);
}

.feature-icon i {
    font-size: 1.5rem;
    color: #0d6efd;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
}

.feature-list li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    color: var(--text-secondary, #5e6f7d);
}

body.dark .feature-list li {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: #28a745;
    width: 16px;
    font-size: 0.7rem;
}

/* Demo Button */
.btn-demo {
    background: #d4a11e;
    border: none;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    transition: var(--transition, all 0.2s ease);
    cursor: pointer;
}

.btn-demo:hover {
    background: #b3881a;
    transform: scale(0.95);
}

/* Demo Stats Section */
.demo-stats {
    background: linear-gradient(135deg, #0b2b40 0%, #1a4a60 100%);
    border-radius: 20px;
    padding: 1rem;
    color: white;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Demo Table */
.demo-table {
    background: var(--card-bg, white);
    border-radius: 20px;
    overflow: hidden;
}

body.dark .demo-table {
    background: var(--card-bg, #1e2538);
}

.demo-table th, 
.demo-table td {
    padding: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-primary, #0a2c3d);
}

body.dark .demo-table th,
body.dark .demo-table td {
    color: var(--text-primary, #eef2ff);
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #0a2c3d);
}

/* Demo Modal */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.demo-modal-content {
    background: var(--card-bg, white);
    max-width: 800px;
    width: 90%;
    border-radius: 24px;
    padding: 1.2rem;
    animation: slideDown 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

body.dark .demo-modal-content {
    background: var(--card-bg, #1e2538);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

body.dark .modal-header-custom {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: var(--transition, all 0.2s ease);
}

.close-modal:hover {
    color: #dc3545;
    transform: rotate(90deg);
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8rem;
}

body.dark .user-row {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.user-row:hover {
    background: rgba(13, 110, 253, 0.05);
}

/* Range Slider Styling */
.form-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e9ecef;
    border-radius: 5px;
    outline: none;
}

body.dark .form-range {
    background: #2a3448;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #d4a11e;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-hero {
        padding: 1.2rem;
    }
    .admin-hero h1 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .feature-card {
        padding: 1rem;
    }
    .demo-table th, 
    .demo-table td {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .admin-hero .display-4 {
        font-size: 1.8rem;
    }
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    .feature-icon i {
        font-size: 1.2rem;
    }
}