* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-teal: #00d4ff;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #faf3e8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-border: rgba(34, 197, 94, 0.3);
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: rgba(239, 68, 68, 0.3);
    --warning-bg: rgba(251, 146, 60, 0.1);
    --warning-border: rgba(251, 146, 60, 0.3);
    --navbar-height: 70px;
}

/* CRITICAL LAYOUT FIXES */
html {
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-teal) var(--secondary-bg);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page wrapper to control entire layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

/* Main content area that expands */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: var(--navbar-height);
}

/* Dashboard Styles */
.main-container {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* MAIN NAVBAR STYLES - CLEANED UP */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 0;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand:hover {
    text-decoration: none;
    transform: scale(1.02);
}

.navbar-brand i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation items container */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    flex-shrink: 0;
}

/* Welcome text styling */
.navbar-text {
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-text .fw-bold {
    font-weight: 600;
    color: var(--accent-teal);
}

/* Button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 0.875rem;
    line-height: 1.2;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
    border-color: transparent;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Responsive design */
@media (max-width: 1200px) {
    .navbar .container {
        padding: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    :root {
        --navbar-height: 60px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .navbar .container {
        padding: 0 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
}

  /* Glass card effect */
        .glass-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        /* Enhanced subscription card */
        .subscription-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }
        
        .subscription-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }
        
        /* Info item styling */
        .info-item {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .info-item:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-2px);
        }
        
        .info-label {
            font-size: 0.85rem;
            opacity: 0.8;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.5rem;
        }
        
        .info-value {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        /* Status badges */
        .status-badge {
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
            border: 2px solid;
        }
        
        .status-active {
            background: rgba(40, 167, 69, 0.2);
            border-color: #28a745;
            color: #28a745;
        }
        
        .status-warning {
            background: rgba(255, 193, 7, 0.2);
            border-color: #ffc107;
            color: #ffc107;
        }
        
        /* Feature badges */
        .feature-badge {
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin: 0.25rem;
            display: inline-block;
            transition: all 0.3s ease;
        }
        
        .feature-badge:hover {
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
            transform: translateY(-1px);
        }
        
        /* Crown icon animation */
        .crown-icon {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }
        
        /* Price styling */
        .price-value {
            font-size: 1.4rem;
            font-weight: 700;
            background: linear-gradient(45deg, #007bff, #0056b3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* Mobile optimizations */
        @media (max-width: 768px) {
            .subscription-card {
                padding: 1.5rem;
                margin: 0 0.5rem;
            }
            
            .info-item {
                padding: 1rem;
            }
            
            .info-value {
                font-size: 1rem;
            }
            
            .price-value {
                font-size: 1.2rem;
            }
        }
        
        
        
   
   
   

/* Custom Scrollbar Design */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

::-webkit-scrollbar-corner {
    background: var(--secondary-bg);
}

/* Enhanced Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--primary-bg), var(--secondary-bg));
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Coding Animation Layers */
.code-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3;
}

.code-line {
    position: absolute;
    color: var(--accent-teal);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    animation: codeFlow 15s linear infinite;
}

.code-line:nth-child(odd) {
    color: var(--accent-purple);
    animation-duration: 12s;
}

.code-line:nth-child(3n) {
    color: var(--accent-blue);
    animation-duration: 18s;
}

/* Binary Rain Effect */
.binary-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
}

.binary-column {
    position: absolute;
    color: var(--accent-teal);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    animation: binaryFall 10s linear infinite;
    opacity: 0;
}

/* Floating Code Blocks */
.floating-code {
    position: absolute;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--accent-teal);
    opacity: 0.6;
    animation: floatCode 20s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.floating-code:nth-child(even) {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
    animation-duration: 25s;
    animation-delay: -5s;
}

/* Network Nodes */
.network-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-teal);
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse 3s ease-in-out infinite;
}

.node::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent-teal);
    border-radius: 50%;
    top: -4px;
    left: -4px;
    animation: ripple 3s ease-in-out infinite;
}

.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    opacity: 0.3;
    animation: connectionPulse 4s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

@keyframes codeFlow {
    0% {
        opacity: 0;
        transform: translateX(-100vw) translateY(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100vw) translateY(-50px);
    }
}

@keyframes binaryFall {
    0% {
        opacity: 0;
        transform: translateY(-100vh);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(1deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-30px) rotate(0.5deg);
        opacity: 0.9;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleX(0);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        linear-gradient(var(--accent-teal) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-teal) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}



/* Glass Card - Enhanced for authentication pages */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}


/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    backdrop-filter: blur(20px);
}

.alert-success {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--accent-green) !important;
}

.alert-danger {
    background: var(--error-bg) !important;
    border: 1px solid var(--error-border) !important;
    color: var(--accent-red) !important;
}

.alert-warning {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--accent-orange) !important;
}

/* Button Styles - Enhanced */
.btn {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}






        
        

/* Navigation */
.nav-tabs {
    border-bottom: 5px solid var(--glass-border);
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    background: none;
    padding: 1rem 1.5rem;
    margin-right: 0.5rem;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: var(--accent-teal);
    background: rgba(0, 212, 255, 0.1);
}

.nav-tabs .nav-link.active {
    color: var(--accent-teal);
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid var(--accent-teal);
}




/* Main Card Styles */
.stat-card-new {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    color: white;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
    .stat-card-new {
        padding: 1rem;
        border-radius: 12px;
    }
}

.stat-card-new:hover {
    transform: translateY(-2px);
}

/* Premium Card */
.stat-card-new.premium {
    background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,20,40,0.95) 50%, rgba(0,0,0,0.9) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    box-shadow: 0 8px 32px rgba(255,215,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.stat-card-new:hover {
    box-shadow: 0 12px 40px rgba(255,215,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Free Card */
.stat-card-new.free {
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(40,40,40,0.9) 50%, rgba(0,0,0,0.85) 100%);
    border: 1px solid rgba(255,193,7,0.4);
    box-shadow: 0 8px 32px rgba(255,193,7,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.stat-card-new.free:hover {
    box-shadow: 0 12px 40px rgba(255,193,7,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Glassmorphism Overlays */
.glassmorphism-overlay.premium {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,215,0,0.05) 0%, transparent 50%, rgba(255,215,0,0.05) 100%);
    pointer-events: none;
}

.glassmorphism-overlay.free {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,193,7,0.05) 0%, transparent 50%, rgba(255,193,7,0.05) 100%);
    pointer-events: none;
}

/* Header Section Mobile Fix */
@media (max-width: 576px) {
    .d-flex.align-items-center.justify-content-between.mb-3 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .d-flex.align-items-center:first-child {
        width: 100%;
    }
    
    .status-badge {
        align-self: flex-start;
    }
}

/* Stat Icons */
.stat-card-new-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Mobile responsive icon sizing */
@media (max-width: 576px) {
  .stat-card-new-icon {
        width: 40px;
        height: 40px;
    }
    
  .stat-card-new-icon i {
        font-size: 1.2rem !important;
    }
}

.stat-card-new-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.stat-card-new-icon.premium {
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0.1) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    color: #ffd700;
}

.stat-card-new-icon.free {
    background: linear-gradient(135deg, rgba(255,193,7,0.2) 0%, rgba(255,193,7,0.1) 100%);
    border: 1px solid rgba(255,193,7,0.3);
    color: #ffc107;
}

/* Text Styles - Mobile Responsive */
.gradient-text.premium {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, #ffd700, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
    line-height: 1.3;
}

.gradient-text.free {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, #ffc107, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .gradient-text.premium,
    .gradient-text.free {
        font-size: 0.95rem;
    }
}

.subtitle-text {
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    word-break: break-word;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .subtitle-text {
        font-size: 0.8rem;
    }
}

/* Status Badge Mobile Fix */
.status-badge {
    backdrop-filter: blur(10px);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .status-badge {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem;
    }
    
    .status-badge i {
        font-size: 0.9rem !important;
    }
}

.status-badge:hover {
    transform: scale(1.02);
}

.status-badge.premium {
    background: linear-gradient(135deg, rgba(76,175,80,0.3) 0%, rgba(76,175,80,0.6) 100%);
    border: 1px solid rgba(76,175,80,0.5);
}

.status-badge.free {
    background: linear-gradient(135deg, rgba(255,193,7,0.3) 0%, rgba(255,193,7,0.6) 100%);
    border: 1px solid rgba(255,193,7,0.5);
}

/* Stat Cards Mobile Responsive */
.stat-mini-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .stat-mini-card {
        padding: 0.75rem !important;
        border-radius: 8px;
    }
}

.stat-mini-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.stat-value {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 576px) {
    .stat-value {
        font-size: 1.2rem;
    }
}

.stat-label {
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: 0.75rem;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .stat-label {
        font-size: 0.65rem;
    }
}

/* Alert Mobile Responsive */
.custom-alert {
    background: linear-gradient(135deg, rgba(255,193,7,0.2) 0%, rgba(255,193,7,0.1) 100%);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 4px 16px rgba(255,193,7,0.2);
}

@media (max-width: 576px) {
    .custom-alert {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .custom-alert i {
        font-size: 1rem !important;
    }
}


/* Tool Card Styles */
.tool-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tool-card.selected {
    border-color: #198754 !important;
    background-color: #198754 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.tool-card.selected .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.tool-card.premium {
    border-color: #6f42c1;
}

.tool-card.premium:not(.selected):hover {
    border-color: #5a359a;
    background-color: #1e032e;
}

.stat-icon {
    font-size: 2.5rem;
    color: #6c757d;
}

.tool-card.selected .stat-icon {
    color: white !important;
}

/* Timer specific styles */
.tool-card [id^="timer-"] {
    margin-top: 10px;
}

.tool-card [id^="timer-"] .badge {
    font-size: 0.8rem;
    padding: 5px 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-card {
        margin-bottom: 15px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}

/* Buttons Mobile Responsive - MAIN FIX */
.btn-premium {
    background: linear-gradient(135deg, rgba(255,193,7,0.3) 0%, rgba(255,193,7,0.6) 100%);
    border: 1px solid rgba(255,193,7,0.5);
    color: white;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(255,193,7,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    font-weight: bold;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .btn-premium {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
        gap: 0.3rem;
        min-height: 38px;
        flex-shrink: 1;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .btn-premium {
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 6px;
        gap: 0.25rem;
        min-height: 36px;
        flex-shrink: 1;
        min-width: 70px;
    }
    
    .btn-premium i {
        font-size: 0.7rem !important;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .btn-premium {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.2rem;
        min-height: 32px;
        min-width: 60px;
    }
    
    .btn-premium i {
        font-size: 0.65rem !important;
    }
}

.btn-premium:hover {
    background: linear-gradient(135deg, rgba(255,193,7,0.5) 0%, rgba(255,193,7,0.8) 100%);
    box-shadow: 0 6px 20px rgba(255,193,7,0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-deposit {
    background: linear-gradient(135deg, rgba(76,175,80,0.3) 0%, rgba(76,175,80,0.6) 100%);
    border: 1px solid rgba(76,175,80,0.5);
    color: white;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(76,175,80,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    font-weight: bold;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .btn-deposit {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
        gap: 0.3rem;
        min-height: 38px;
        flex-shrink: 1;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .btn-deposit {
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 6px;
        gap: 0.25rem;
        min-height: 36px;
        flex-shrink: 1;
        min-width: 70px;
    }
    
    .btn-deposit i {
        font-size: 0.7rem !important;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .btn-deposit {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.2rem;
        min-height: 32px;
        min-width: 60px;
    }
    
    .btn-deposit i {
        font-size: 0.65rem !important;
    }
}

.btn-deposit:hover {
    background: linear-gradient(135deg, rgba(76,175,80,0.5) 0%, rgba(76,175,80,0.8) 100%);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-deposit:active {
    transform: translateY(0);
}

/* Button Container Mobile Fix */
.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .button-container {
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .button-container {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .d-flex.align-items-center.justify-content-center.gap-2 {
        gap: 0.4rem !important;
        flex-wrap: wrap;
    }
    
    .flex-grow-1 {
        min-width: 0;
        flex-basis: 0;
        flex-shrink: 1;
    }
}

@media (max-width: 480px) {
    .button-container {
        gap: 0.3rem;
    }
    
    .d-flex.align-items-center.justify-content-center.gap-2 {
        gap: 0.3rem !important;
    }
}

/* Additional button fixes for very small screens */
@media (max-width: 360px) {
    .btn-premium,
    .btn-deposit {
        padding: 0.35rem 0.4rem;
        font-size: 0.65rem;
        min-height: 30px;
        min-width: 50px;
    }
    
    .btn-premium i,
    .btn-deposit i {
        font-size: 0.6rem !important;
    }
}

/* Ensure buttons don't break on very wide screens */
@media (min-width: 1200px) {
    .btn-premium,
    .btn-deposit {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        max-width: 200px;
    }
}

/* Fix for button text and icon alignment */
.btn-premium .fa,
.btn-premium .fas,
.btn-premium .far,
.btn-premium .fal,
.btn-deposit .fa,
.btn-deposit .fas,
.btn-deposit .far,
.btn-deposit .fal {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    flex-shrink: 0;
}

/* Prevent button content from overflowing */
.btn-premium span,
.btn-deposit span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

/* Card button wrapper responsive fix */
@media (max-width: 576px) {
    .stat-card-new .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-card-new .btn {
        flex-basis: auto;
        flex-grow: 0;
        flex-shrink: 1;
        min-width: 0;
    }
}






/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(20px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}








/* Pricing Cards */
.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-teal);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.15);
}

.pricing-card.featured {
    border-color: var(--accent-teal);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(168, 85, 247, 0.1));
    transform: scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-teal);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.features {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.features li::before {
    content: '';
    color: var(--accent-teal);
    font-weight: bold;
    margin-right: 0.5rem;
}







/* Tool Cards */
.tool-card {
    background: var(--glass-bg);
    border: 3px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-3px);
}


.tool-card.selected {
    border-color: var(--accent-teal);
    background: rgba(0, 212, 255, 0.1);
}


.tool-card.premium {
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(0, 212, 255, 0.05));
}










/* Wallet Cards */
.wallet-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Authentication Page Specific Styles - FIXED */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    width: 100%;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    margin: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-title {
    color: var(--accent-teal);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}

/* Right side content for auth pages */
.auth-right-side {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.auth-feature-icon {
    font-size: 8rem;
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.3));
}

.auth-feature-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-purple);
}

.auth-feature-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Links */
a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-purple);
    text-decoration: none;
}




/* Mobile toggle button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation content wrapper */
.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation actions container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User info styling */
.user-info {
    display: flex;
    align-items: center;
}

.user-welcome {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--accent-color);
}

/* Action buttons container */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation button styling */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Sign In button */
.signin-btn {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.signin-btn:hover {
    background: var(--hover-bg);
    color: var(--text-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Sign Up button */
.signup-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-color: var(--accent-color);
}

.signup-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

/* Dashboard button */
.dashboard-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-color: #4f46e5;
}

.dashboard-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Logout button */
.logout-btn {
    background: transparent;
    color: #ef4444;
    border-color: #ef4444;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Button icons */
.nav-btn i {
    font-size: 0.85rem;
}

/* Responsive text display */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

.desktop-only {
    display: inline;
}

.mobile-only {
    display: none;
}




/* Extra small screens */
@media (max-width: 480px) {
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .user-welcome {
        font-size: 0.85rem;
    }
}

/* Ensure proper navbar container layout */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    
}



.terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-modal.hidden {
    display: none;
}

.modal-content {
    background: #1c1c2b; /* Dark background */
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #b689f8; /* Light purple text */
}

.modal-header {
    background: #2e003e; /* Dark purple */
    color: #b689f8;
    padding: 20px;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #b689f8;
}

.warning {
    font-weight: bold;
    font-size: 14px;
    color: #ffb347;
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background: #2a2a3b; /* Darker body */
    color: #dcd0ff;
}

.terms-content {
    line-height: 1.6;
}

.highlight {
    background: #b689f8;
    color: black;
    font-weight: bold;
    padding: 2px 4px;
}

.scroll-indicator {
    position: sticky;
    bottom: 0;
    background: #4b2a6a; /* Deep purple */
    color: #b689f8;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    margin: 20px -20px -20px -20px;
}

.modal-footer {
    padding: 20px;
    background: #1c1c2b;
    text-align: center;
    border-top: 1px solid #333;
}

.read-status {
    margin-bottom: 15px;
    font-weight: bold;
    color: #f67280;
}

.read-status.completed {
    color: #7bed9f;
}

.btn {
    padding: 12px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.btn-deny {
    background: #c0392b;
    color: white;
}

.btn-accept {
    background: #27ae60;
    color: white;
}

.btn-accept:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}




/* Activities Table Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}



/* Additional modal fixes if needed */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* Ensure clicks work on modal content */
.modal-dialog {
    pointer-events: none;
}

.modal-content {
    pointer-events: auto;
}

/* Fix for Bootstrap 5 modal backdrop issues */
body.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

.dark-bg {
    background-color: #1a1a1a !important;
    color: #ffffff;
}

.table.dark-bg {
    --bs-table-bg: #1a1a1a;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.2);
}

.table.dark-bg th {
    background-color: #2d2d2d;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 12px 8px;
}

.table.dark-bg td {
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 10px 8px;
    vertical-align: middle;
}

.table.dark-bg tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075) !important;
}

/* Status badges */
.badge.bg-success {
    background-color: #28a745 !important;
    color: white;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Delete Button Styling - White trash icon on red background */
.btn-delete-activity {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-delete-activity:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-delete-activity:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.btn-delete-activity .fas.fa-trash {
    color: white !important;
    font-size: 0.875rem;
}

/* Pagination Styling */
.pagination {
    margin-top: 1.5rem;
    gap: 4px;
}

.page-item .page-link {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.page-item .page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-item.active .page-link {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* First/Last page links styling */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-weight: 600;
    background-color: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Modal Backdrop Fix */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-dialog {
    z-index: 1051 !important;
    pointer-events: auto;
}

/* Modal Content Styling */
.modal-content {
    background-color: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background-color: #343a40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: #dc3545;
    font-weight: 600;
}

.modal-body {
    background-color: #2d2d2d;
    color: #ffffff;
}

.modal-footer {
    background-color: #343a40;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Alert styling for dark theme */
.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #fff3cd;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f8d7da;
}





/* Form Controls - Enhanced for authentication */
.form-control {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--glass-bg) !important;
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25) !important;
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    accent-color: var(--accent-teal) !important;
}

.form-check-input:checked {
    background-color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.form-check-label {
    color: var(--text-primary);
    margin-left: 0.5rem;
}



/* Form elements in modal */
.form-control {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.form-control:focus {
    background-color: #1a1a1a;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-delete-activity {
        padding: 4px 8px;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .pagination {
        font-size: 0.875rem;
    }
    
    .page-item .page-link {
        padding: 6px 10px;
        min-width: 36px;
    }
}

/* Ensure proper stacking context */
body.modal-open {
    overflow: hidden;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}





/* Mobile Navigation - Properly Fixed to Bottom */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    justify-content: space-around;
    padding: 8px 0;
    min-height: 60px;
    transition: all 0.3s ease;
    
    /* Hardware acceleration for smooth performance */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    
    /* Prevent any margin/padding interference */
    margin: 0;
    box-sizing: border-box;
    
    /* Ensure it stays visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Light theme support */
[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    color: var(--text-secondary, #888);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    min-width: 0;
    max-width: 100px;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 2px;
    position: relative;
}

/* Light theme nav items */
[data-theme="light"] .mobile-nav-item {
    color: #555;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-teal, #00d4ff);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Light theme active states */
[data-theme="light"] .mobile-nav-item.active,
[data-theme="light"] .mobile-nav-item:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.mobile-nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.mobile-nav-item:hover i {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}



/* Safe area adjustments for devices with notches */
@supports (padding: max(0px)) {
    .mobile-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        bottom: env(safe-area-inset-bottom, 0);
    }
    
    body {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-nav {
        /* Multiple position declarations for better support */
        position: -webkit-sticky;
        position: sticky;
        position: fixed;
        bottom: 0;
        bottom: constant(safe-area-inset-bottom);
        bottom: env(safe-area-inset-bottom);
        
        /* Force hardware acceleration */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .mobile-nav {
        padding: 6px 0;
        min-height: 55px;
    }
    
    .mobile-nav-item {
        padding: 6px 2px;
        font-size: 10px;
        max-width: 80px;
    }
    
    .mobile-nav-item i {
        font-size: 16px;
        margin-bottom: 1px;
    }
    
    .mobile-nav-item span {
        font-size: 9px;
    }
    
    body {
        padding-bottom: 65px !important;
    }
}

/* Medium mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-nav {
        padding: 8px 0;
        min-height: 65px;
    }
    
    .mobile-nav-item {
        padding: 8px 4px;
        font-size: 12px;
        max-width: 90px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    body {
        padding-bottom: 75px !important;
    }
}

/* Tablet devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-nav {
        padding: 10px 0;
        min-height: 70px;
    }
    
    .mobile-nav-item {
        padding: 10px 6px;
        font-size: 13px;
        max-width: 100px;
    }
    
    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
    }
    
    body {
        padding-bottom: 80px !important;
    }
}

/* Desktop devices (1025px and up) */
@media (min-width: 1025px) {
    .mobile-nav {
        padding: 12px 0;
        min-height: 75px;
    }
    
    .mobile-nav-item {
        padding: 12px 8px;
        font-size: 14px;
        max-width: 120px;
    }
    
    .mobile-nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .mobile-nav-item span {
        font-size: 12px;
    }
    
    body {
        padding-bottom: 85px !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-nav {
        padding: 4px 0;
        min-height: 50px;
    }
    
    .mobile-nav-item {
        padding: 4px 2px;
        font-size: 10px;
    }
    
    .mobile-nav-item i {
        font-size: 14px;
        margin-bottom: 1px;
    }
    
    .mobile-nav-item span {
        font-size: 8px;
    }
    
    body {
        padding-bottom: 60px !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-nav {
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
    
    .mobile-nav-item i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav-item,
    .mobile-nav-item i {
        transition: none !important;
    }
    
    .mobile-nav-item:hover {
        transform: none !important;
    }
}

/* Focus states for keyboard navigation */
.mobile-nav-item:focus {
    outline: 2px solid var(--accent-teal, #00d4ff);
    outline-offset: 2px;
    background: rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .mobile-nav-item:focus {
    outline-color: #007bff;
    background: rgba(0, 123, 255, 0.2);
}

/* Print styles */
@media print {
    .mobile-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Integration with existing auth page styles */
.auth-card {
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .auth-card {
        margin: 1rem 1rem 100px 1rem;
        padding: 2rem;
        border-radius: 16px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-feature-icon {
        font-size: 5rem;
    }

    .auth-feature-title {
        font-size: 1.5rem;
    }

    .auth-feature-description {
        font-size: 1rem;
    }

    .glass-card {
        margin: 1rem 1rem 20px 1rem;
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .form-control {
        padding: 1rem;
        font-size: 16px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}






/* Main Navigation */
        .main-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .main-nav.scrolled {
            background: rgba(0, 0, 0, 0.98);
            box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
        }

        /* Logo Section */
        .logo-section {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .brand-text {
            color: white;
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .brand-subtitle {
            color: #a0a0a0;
            font-size: 0.8rem;
            margin-top: -3px;
        }

        /* Navigation Links */
        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links li a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links li a:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        .nav-links li a.active {
            color: white;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        /* Action Buttons Section */
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }

        .user-name {
            color: #4facfe;
            font-weight: 600;
        }

        .nav-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1.2rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .nav-btn:hover {
            transform: translateY(-2px);
        }

        .dashboard-btn {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
        }

        .dashboard-btn:hover {
            box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
        }

        .logout-btn {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .logout-btn:hover {
            background: rgba(255, 87, 87, 0.2);
            color: #ff5757;
            border-color: #ff5757;
        }

        .signin-btn {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .signin-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border-color: rgba(255, 255, 255, 0.3);
        }

        .signup-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .signup-btn:hover {
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .theme-toggle {
            width: 40px;
            height: 40px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            transform: scale(1.1);
        }

        /* Mobile Menu Toggle */
        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .mobile-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Mobile Navigation */
        .new-mobile-nav {
            display: none;
            position: fixed;
            top: 70px;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.98);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transform: translateY(-100%);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
        }

        .new-mobile-nav.open {
            display: block;
            transform: translateY(0);
        }

        .new-mobile-nav-content {
            padding: 1.5rem;
        }

        .new-mobile-nav-links {
            list-style: none;
            margin-bottom: 2rem;
        }

        .new-mobile-nav-links li {
            margin-bottom: 0.5rem;
        }

        .new-mobile-nav-links li a {
            display: block;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            padding: 1rem;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .new-mobile-nav-links li a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .new-mobile-actions {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .new-mobile-user-info {
            color: rgba(255, 255, 255, 0.8);
            padding: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-container {
                height: 60px;
            }

            .nav-links {
                display: none;
            }

            .mobile-toggle {
                display: block;
            }

            .nav-actions {
                display: none;
            }

            .brand-text {
                font-size: 1.2rem;
            }

            .logo {
                width: 40px;
                height: 40px;
                font-size: 1.3rem;
            }

            body {
                padding-top: 60px;
            }
        }

        @media (max-width: 480px) {
            .nav-container {
                padding: 0 0.75rem;
            }

            .brand-text {
                font-size: 1.1rem;
            }

            .logo {
                width: 35px;
                height: 35px;
                font-size: 1.2rem;
            }

            .brand-subtitle {
                font-size: 0.7rem;
            }
        }



        /* Utility Classes */
        .desktop-only {
            display: inline;
        }

        .mobile-only {
            display: none;
        }

        @media (max-width: 768px) {
            .desktop-only {
                display: none;
            }

            .mobile-only {
                display: inline;
            }
        }


