/* ========================================
   PANEL CSS - Single Stylesheet
   ======================================== */

:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --dark-color: #5a5c69;
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fc;
    color: #5a5c69;
    overflow-x: hidden;
}

/* ========================================
   AUTHENTICATION PAGES
   ======================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003383 0%, #e24703 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    padding: 40px 40px 20px;
    /*background: linear-gradient(135deg, #003383 0%, #af421e 100%);*/
    background: #fff;
    /*color: white;*/
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-body {
    padding: 40px;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 13px;
    color: #5a5c69;
    margin-bottom: 8px;
}

.auth-form .input-group-text {
    background: #f8f9fc;
    border-right: 0;
    color: #858796;
}

.auth-form .form-control,
.auth-form .form-select {
    border-left: 0;
    padding: 12px 15px;
    font-size: 14px;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
    box-shadow: none;
    border-color: #bac8f3;
}

.auth-btn {
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.error-msg {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
}

.auth-footer {
    padding-top: 20px;
    border-top: 1px solid #e3e6f0;
}

/* ========================================
   PANEL LAYOUT
   ======================================== */

.panel-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
/* ========================================
   MODERN SIDEBAR STYLES
   ======================================== */

.panel-sidebar {
    width: var(--sidebar-width);
    background: #1a1d2e;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.panel-sidebar::-webkit-scrollbar {
    width: 6px;
}

.panel-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.panel-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-logo:hover {
    transform: translateX(4px);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar User Card */
.sidebar-user-card {
    margin: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 12px 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
    padding: 0 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    gap: 12px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-link:hover .nav-icon {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active .nav-icon {
    background: rgba(255, 255, 255, 0.2);
}

.nav-icon i {
    font-size: 20px;
}

.nav-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.submenu-arrow {
    font-size: 18px;
    transition: var(--transition);
}

.nav-item.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 8px 0 8px 52px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-item.has-submenu.active .submenu {
    max-height: 500px;
}

.submenu li {
    margin-bottom: 4px;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.submenu li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

.submenu li a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

.submenu li a i {
    font-size: 16px;
}

/* Nav Divider */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 28px;
}

/* Logout Link */
.nav-link-danger {
    color: rgba(245, 87, 108, 0.9) !important;
}

.nav-link-danger:hover {
    background: rgba(245, 87, 108, 0.15) !important;
    color: #f5576c !important;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.sidebar-footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar-footer-content i {
    font-size: 28px;
    color: #667eea;
}

.footer-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 4px 0;
    font-weight: 600;
}

.footer-link {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: #764ba2;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /*z-index: 999;*/
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .panel-sidebar {
        left: calc(var(--sidebar-width) * -1);
    }
    
    .panel-sidebar.active {
        left: 0;
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}


/* HEADER */
.panel-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
}

.panel-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid #e3e6f0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 30px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #5a5c69;
    cursor: pointer;
    margin-right: 20px;
    display: none;
}

.header-left {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #5a5c69;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-dropdown {
    color: #5a5c69;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 15px;
}

.user-dropdown i {
    font-size: 20px;
    margin-right: 10px;
}

.username {
    font-weight: 600;
    font-size: 14px;
}

/* MAIN CONTENT */
.main-content {
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
}

/* CARDS */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #5a5c69;
}

/* REFERRAL CARD */
.referral-card {
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
    color: white;
}

.referral-card .card-title {
    color: white;
}

.referral-link-wrapper .input-group-text {
    background: white;
    border: 1px solid #ddd;
}

.referral-link-wrapper .form-control {
    background: white;
    border: 1px solid #ddd;
}

/* STATS CARDS */
.stats-card {
    position: relative;
    overflow: hidden;
}

.stats-card .card-body {
    display: flex;
    align-items: center;
    padding: 25px;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 28px;
    color: white;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.stats-info {
    flex: 1;
}

.stats-label {
    font-size: 13px;
    color: #858796;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stats-value {
    font-size: 28px;
    font-weight: 700;
    color: #5a5c69;
    margin-bottom: 0;
}

/* DATATABLE STYLING */
.data-table {
    width: 100% !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 12px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .panel-sidebar {
        left: calc(var(--sidebar-width) * -1);
    }
    
    .panel-sidebar.active {
        left: 0;
    }
    
    .panel-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .auth-body {
        padding: 30px 20px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .stats-card .card-body {
        padding: 20px;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stats-value {
        font-size: 24px;
    }
}



/* ========================================
   MODERN DASHBOARD STYLES
   ======================================== */

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.welcome-content {
    flex: 1;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.welcome-illustration {
    font-size: 80px;
    opacity: 0.2;
}

/* Modern Stat Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
}

.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card-content {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: #8e8e93;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #1c1c1e;
    margin: 0;
}

/* Modern Card */
.modern-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header-modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: none;
}

.card-header-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.card-title-modern {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1e;
    margin: 0;
}

.card-subtitle-modern {
    font-size: 14px;
    color: #636366;
    margin: 0;
}

/* Referral Boxes */
.referral-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.referral-box:hover {
    border-color: #667eea;
    background: white;
}

.referral-left {
    border-left: 4px solid #667eea;
}

.referral-right {
    border-left: 4px solid #764ba2;
}

.referral-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #1c1c1e;
    font-size: 15px;
}

.referral-box-header i {
    font-size: 24px;
    color: #667eea;
}

.referral-input-group {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 10px;
    padding: 4px;
    border: 2px solid #e5e5ea;
}

.referral-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: 14px;
    color: #1c1c1e;
    font-family: 'Courier New', monospace;
}

.referral-input:focus {
    outline: none;
}

.referral-copy-btn {
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.referral-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Team Stat Cards */
.team-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.team-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.team-direct::before {
    background: linear-gradient(180deg, #11998e 0%, #38ef7d 100%);
}

.team-downline::before {
    background: linear-gradient(180deg, #f093fb 0%, #f5576c 100%);
}

.team-left::before {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.team-right::before {
    background: linear-gradient(180deg, #fa709a 0%, #fee140 100%);
}

.team-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #667eea;
    margin-bottom: 16px;
}

.team-stat-label {
    font-size: 13px;
    color: #8e8e93;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1c1c1e;
    margin: 0;
}

/* Custom Toast */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid #38ef7d;
}

.toast-success i {
    color: #38ef7d;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-banner {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 22px;
    }
    
    .welcome-illustration {
        font-size: 50px;
        margin-top: 10px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 22px;
    }
}


/*Event booking dashboard*/
.events-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h4 {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
    font-size: 1.2rem;
}

.section-header h4 i {
    color: #667eea;
    margin-right: 8px;
}

.view-all-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.view-all-link:hover {
    color: #764ba2;
}

.event-card-mini {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.event-card-mini:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-card-mini h5 {
    color: #2d3748;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.event-card-mini p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-card-mini p i {
    color: #667eea;
    margin-right: 5px;
}

.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #48bb78;
}

.btn-book-mini {
    background: linear-gradient(135deg, #003383 0%, #ed4703 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-book-mini:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    top: 50%;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 1.5rem;
    color: #667eea;
}

.no-events {
    text-align: center;
    padding: 30px;
    color: #a0aec0;
}

@media (max-width: 768px) {
    .carousel-inner .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/*End event booking dashboard*/

