/**
 * PayEfb Dashboard - Bootstrap Enhanced Styles
 * Modern UI with Bootstrap 5 classes
 */

/* ============================================
   Custom Variables & Enhancements
   ============================================ */
:root {
    --payefb-primary: #667eea;
    --payefb-secondary: #764ba2;
    --payefb-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   Dashboard Wrapper
   ============================================ */
.payefb-dashboard-wrapper {
    margin: 2rem auto;
    max-width: 1400px;
}

/* Dashboard Header with Gradient */
.payefb-dashboard-header {
    background: var(--payefb-gradient);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.payefb-dashboard-header h2 {
    margin: 0;
    font-weight: 600;
}

.payefb-user-info .user-email {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.payefb-btn-logout {
    background: white;
    color: var(--payefb-primary);
    font-weight: 600;
    transition: all 0.3s;
}

.payefb-btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   Sidebar Navigation
   ============================================ */
.payefb-dashboard-sidebar {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-right: 1px solid #dee2e6;
}

.payefb-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payefb-nav-item {
    margin: 0.5rem 1rem;
}

.payefb-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.payefb-nav-link:hover {
    background: #e9ecef;
    color: var(--payefb-primary);
    transform: translateX(4px);
}

.payefb-nav-item.active .payefb-nav-link {
    background: var(--payefb-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.payefb-nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* ============================================
   Module Content
   ============================================ */
.payefb-dashboard-content {
    background: white;
    padding: 2rem;
    min-height: 500px;
}

.payefb-module-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f5;
}

.payefb-module-header h2 {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.payefb-module-header p {
    color: #6c757d;
    margin: 0;
}

/* ============================================
   Cards Enhancement
   ============================================ */
.payefb-card {
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.payefb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* ============================================
   Stats Boxes
   ============================================ */
.payefb-stat-box {
    background: var(--payefb-gradient);
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.payefb-stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.payefb-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.payefb-stat-change {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ============================================
   Tables Enhancement
   ============================================ */
.payefb-table {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

.payefb-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.payefb-table tbody tr:hover {
    background: #f8f9fa;
}

/* ============================================
   Badges
   ============================================ */
.payefb-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================
   Empty States
   ============================================ */
.payefb-empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.payefb-empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.payefb-empty-state h3 {
    font-weight: 600;
    color: #495057;
}

.payefb-empty-state p {
    color: #6c757d;
}

/* ============================================
   Login Required
   ============================================ */
.payefb-login-required {
    min-height: 500px;
}

.payefb-auth-card {
    max-width: 400px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.payefb-auth-card .payefb-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payefb-dashboard-content > * {
    animation: fadeIn 0.4s ease;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .payefb-dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .payefb-nav-list {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .payefb-nav-item {
        margin: 0;
        flex-shrink: 0;
    }

    .payefb-nav-link {
        white-space: nowrap;
    }
}
