/* NoExcuses App - Main Stylesheet - Modern Black & Yellow Theme */

:root {
    /* Primary Colors - Yellow/Gold */
    --primary-color: #FFD700;
    --primary-light: #FFE44D;
    --primary-dark: #E6C200;
    --primary-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    
    /* Secondary Colors - Black/Dark */
    --secondary-color: #1A1A1A;
    --secondary-light: #2D2D2D;
    --secondary-dark: #0D0D0D;
    --dark-gradient: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    
    /* Status Colors */
    --success-color: #00C853;
    --danger-color: #FF1744;
    --warning-color: #FFAB00;
    --info-color: #00B0FF;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-color: #F5F5F5;
    --gray-100: #FAFAFA;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --dark-color: #121212;
    
    /* Design Tokens */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --border-radius-full: 50%;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header - Modern Dark Style */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo img {
    height: 36px;
    width: auto;
}

.header-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background: var(--secondary-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.header-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}

.header-btn i {
    font-size: 1.1rem;
}

/* Coin Badge */
.coin-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 20px;
    color: #1A1A1A;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.coin-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.coin-badge i {
    font-size: 0.9rem;
}

.back-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    margin-right: 0.75rem;
}

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

.back-btn i {
    font-size: 1.1rem;
}

/* Footer Navigation - Modern Dark Style */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--secondary-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 0 0.5rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    position: relative;
}

.nav-item i {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 4px 4px;
}

.nav-item.active i {
    transform: scale(1.15);
}

/* Page Content */
.page-content {
    padding-top: 70px;
    padding-bottom: 20px;
    min-height: calc(100vh - 70px);
}

.container {
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
}

/* Hero Card - Modern Dark Style */
.hero-card {
    background: var(--dark-gradient);
    color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    margin: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 159, 67, 0.15) 0%, rgba(254, 159, 67, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.hero-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    position: relative;
}

/* Buttons - Modern Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: var(--secondary-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 200, 83, 0.3);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 23, 68, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

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

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

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(254, 159, 67, 0.15);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Input with Icon */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-icon .form-control {
    padding-left: 2.75rem;
}

/* QR Code Display */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.qr-code img, .qr-code canvas {
    width: 100%;
    height: 100%;
}

.qr-info {
    text-align: center;
}

.qr-info h4 {
    margin-bottom: 0.5rem;
}

.qr-info p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Subscription Card */
.subscription-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #5E5873 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem;
}

.subscription-card .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--success-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subscription-card .status.expired {
    background: var(--danger-color);
}

.subscription-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.subscription-card .details {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-card .detail-item {
    text-align: center;
}

.subscription-card .detail-item span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.subscription-card .detail-item strong {
    font-size: 1rem;
}

/* Menu Items */
.menu-list {
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 1rem;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--gray-800);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--gray-100);
}

.menu-item-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.menu-item-icon.primary { background: rgba(254, 159, 67, 0.15); color: var(--primary-color); }
.menu-item-icon.success { background: rgba(40, 167, 69, 0.15); color: var(--success-color); }
.menu-item-icon.info { background: rgba(23, 162, 184, 0.15); color: var(--info-color); }
.menu-item-icon.danger { background: rgba(220, 53, 69, 0.15); color: var(--danger-color); }
.menu-item-icon.warning { background: rgba(255, 193, 7, 0.15); color: var(--warning-color); }

.menu-item-content {
    flex: 1;
}

.menu-item-content h5 {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.menu-item-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.menu-item-arrow {
    color: var(--gray-400);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.8rem;
    margin: 0;
}

/* Login/Register Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.auth-logo img {
    width: 100px;
    height: 100px;
}

.auth-logo h1 {
    color: var(--white);
    margin-top: 1rem;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    flex: 1;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer a {
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.alert-info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info-color);
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Splash Page - Modern Dark Style */
body:has(.splash-page) {
    background: var(--secondary-color);
    padding-bottom: 0;
}

.splash-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    background: var(--secondary-color);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}

.splash-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.splash-logo .logo-img {
    width: 140px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 24px rgba(255, 215, 0, 0.3));
}

.splash-logo h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.splash-logo p {
    color: var(--gray-400);
    font-size: 1rem;
}

.splash-actions {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.splash-footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
}

.splash-footer p {
    color: var(--gray-600);
    font-size: 0.75rem;
    margin: 0.25rem 0;
}

/* Auth Page - Modern Dark Style */
body:has(.auth-page) {
    background: var(--secondary-color);
    padding-bottom: 0;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--secondary-color);
}

.auth-logo {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: var(--secondary-color);
}

.auth-logo .logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.auth-logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 2rem 1.5rem 1.5rem;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 375px) {
    .hero-card {
        padding: 1.5rem 1rem;
    }
    
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .splash-logo .logo-img {
        width: 100px;
    }
    
    .splash-logo h1 {
        font-size: 1.5rem;
    }
}
