/* Sun Ticketing Manager - Luxury Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gold-gradient: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f5576c;
    --gold-color: #ffd89b;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

body[dir="rtl"] {
    font-family: 'Vazir', sans-serif;
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: var(--primary-gradient);
    position: relative;
    overflow-x: hidden;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23fff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="600" cy="700" r="120" fill="url(%23a)"/><circle cx="300" cy="800" r="80" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.language-switcher a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.language-switcher a:hover,
.language-switcher a.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.welcome-icon {
    font-size: 4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.nav-pills .nav-link {
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 500;
    color: #666;
    background: transparent;
    border: 2px solid transparent;
    transition: var(--transition);
}

.nav-pills .nav-link.active {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: var(--shadow-light);
    border-color: transparent !important;
}

.nav-pills .nav-link:hover:not(.active) {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background: white;
}

.input-group-text {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 12px 16px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-outline-secondary {
    border: 2px solid #dee2e6;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: white;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Dashboard Styles */
.dashboard-container {
    background: #f8f9fa;
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav {
    background: var(--primary-gradient);
    padding: 1rem 0;
}

.nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border-radius: 25px;
    padding: 10px 20px;
    margin: 0 5px;
}

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

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #666;
    font-weight: 500;
}

/* QR Code Styles */
.qr-code-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 3px dashed var(--primary-color);
}

.qr-code-container img {
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.event-image {
    height: 200px;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-sold-out {
    background: var(--warning-gradient);
    color: white;
}

.badge-free {
    background: var(--success-gradient);
    color: white;
}

.badge-price {
    background: var(--gold-gradient);
    color: white;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.event-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Reward Cards */
.reward-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--gold-color);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.reward-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reward-title {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.reward-value {
    background: var(--gold-gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reward-qr {
    text-align: center;
    margin: 1rem 0;
}

.reward-qr img {
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table {
    margin: 0;
}

.table thead th {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    border-color: #f0f0f0;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-header {
        padding: 0.5rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
}

/* RTL Support */
[dir="rtl"] .language-switcher {
    left: 20px;
    right: auto;
}

[dir="rtl"] .input-group-text {
    border-radius: 0 12px 12px 0;
}

[dir="rtl"] .input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-left: 2px solid #e9ecef;
    border-right: none;
}

[dir="rtl"] .event-badge {
    left: 15px;
    right: auto;
}

[dir="rtl"] .reward-card {
    border-left: none;
    border-right: 4px solid var(--gold-color);
}

[dir="rtl"] .reward-card:hover {
    transform: translateX(-5px);
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-scale {
    animation: fadeInScale 0.4s ease-out;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

.bg-gradient-gold {
    background: var(--gold-gradient);
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}

/* Additional Nav Tab Fixes - More Aggressive Overrides */
.nav-pills .nav-item .nav-link {
    color: #666 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #dee2e6 !important;
    margin: 0 2px !important;
}

.nav-pills .nav-item .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.1) !important;
    border-color: var(--primary-color) !important;
}

.nav-pills .nav-item .nav-link.active {
    color: white !important;
    background: var(--primary-gradient) !important;
    border: 1px solid transparent !important;
}

/* Bootstrap Override - Extra Specific */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: white !important;
    background: var(--primary-gradient) !important;
}

/* Even more specific targeting */
ul.nav.nav-pills .nav-item .nav-link.active {
    color: white !important;
    background: var(--primary-gradient) !important;
}

/* Dashboard Nav Pills Specific */
.dashboard-nav .nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
}

.dashboard-nav .nav-pills .nav-link.active,
.dashboard-nav .nav-pills .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Toast Styles */
.toast {
    min-width: 300px;
    background: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-body {
    padding: 1rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
}

.btn-close:hover {
    color: #000;
}

.fade-out {
    opacity: 0 !important;
    transform: translateX(100%) !important;
}

/* Mobile Hamburger Menu Fix */
.navbar-toggler {
    border: 2px solid #DAA520 !important;
    border-radius: 8px;
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(218, 165, 32, 0.25) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23DAA520' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

/* Dark background navbar toggler */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23DAA520' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Member since text color fix */
.member-since {
    color: #ffffff !important;
    opacity: 0.9;
}

.text-muted-white {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* White text for dark backgrounds */
.text-white-readable {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Event image styles */
.event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.event-image-container:hover img {
    transform: scale(1.05);
}

.event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.8), rgba(184, 134, 11, 0.8));
    color: white;
    font-size: 3rem;
}

/* Login/Register error styling */
.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .navbar-toggler {
        border: 2px solid #DAA520 !important;
        background-color: rgba(218, 165, 32, 0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(218, 165, 32, 0.5) !important;
    }
    
    .member-since {
        font-size: 0.9rem;
    }
    
    .event-image-container {
        height: 150px;
    }
    
    .event-image-placeholder {
        font-size: 2rem;
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
} 