/* VaultForge Custom Styles - Modern Minimal Design */

/* Light theme (default) - White/Black with Purple Accents */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --text-primary: #000000;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --border-color: #d1d5db;
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-bg: transparent;
    --input-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.05);
    --gradient-primary: #8b5cf6;
    --gradient-hero: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Dark theme - Black/White with Purple Accents */
[data-theme="dark"] {
    --bg-primary: #111111;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-bg: transparent;
    --input-bg: #1a1a1a;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-primary: #8b5cf6;
    --gradient-hero: #000000;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Force all text elements to use theme colors */
h1, h2, h3, h4, h5, h6,
p, span, div, a, .lead,
.display-4, .display-5, .display-6 {
    color: var(--text-primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

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

/* Navigation - Minimal Design */
.navbar {
    background: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    min-height: 60px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    padding: 0.5rem 0;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    border-color: var(--accent-color);
}

.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='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="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='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    font-weight: 400;
    transition: all 0.2s ease;
    color: var(--text-secondary) !important;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.25rem 0;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    background: var(--bg-secondary);
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    background: var(--bg-secondary);
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        padding: 1rem 0;
        border-radius: 8px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem;
        margin: 0.25rem 0.5rem;
        display: block;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--bg-secondary);
    }
}

/* Hero Section - Pure Black Minimal Design */
.hero-section {
    background: var(--bg-primary);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile hero improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: 40vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Buttons - Minimal Design */
.btn {
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    padding: 12px 24px;
    position: relative;
    min-height: 44px; /* Minimum touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    touch-action: manipulation;
}

.btn-primary {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 0 0 var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 0 0 var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

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

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: white;
}

.btn-outline-secondary:hover {
    background: var(--light-color);
    border-color: var(--text-muted);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading.btn-primary::after {
    border-top-color: white;
}

.btn.loading.btn-outline-primary::after {
    border-top-color: var(--accent-color);
}

/* Cards - Pure Black Minimal Design */
.card {
    background: transparent !important;
    border: 2px solid #000000;
    border-radius: 12px;
    transition: all 0.15s ease;
    box-shadow: none;
    margin-bottom: 1.5rem;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.card-header {
    background: var(--card-bg);
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 1.5rem;
    background: var(--card-bg);
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

/* Mobile card improvements */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-header {
        padding: 1rem;
        border-radius: 8px 8px 0 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0.75rem 1rem;
        border-radius: 0 0 8px 8px;
    }
    
    .card:hover {
        transform: none; /* Disable hover effects on mobile */
    }
}

/* Features Section - Minimal Design */
.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

/* Pricing Cards - Minimal Design */
.pricing-card {
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.pricing-card:hover {
    border-color: var(--accent-color);
}

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    background: var(--bg-secondary);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
}

/* Form Styles - Modern Minimal */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px; /* Prevents zoom on iOS */
    box-shadow: var(--shadow-sm);
    min-height: 48px; /* Better touch target */
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
    background-color: var(--input-bg);
}

.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.94-.94 1.89-1.89 1.89-1.89.94-.94L6.73.94 5.79 1.89 3.9 3.78 2.01 5.67.07 3.73-.87 4.67l1.89 1.89 1.89 1.89z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

.form-select.is-valid {
    border-color: var(--success-color);
}

.form-select.is-invalid {
    border-color: var(--danger-color);
}

/* Validation Feedback */
.valid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 12px;
    color: var(--success-color);
    font-weight: 500;
    clear: both;
    position: relative;
    z-index: 0;
}

.invalid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
    padding-top: 4px;
    font-size: 12px;
    color: var(--danger-color);
    font-weight: 500;
    clear: both;
    position: relative;
    z-index: 0;
}

/* Ensure form controls have space for feedback */
.form-control,
.form-select {
    margin-bottom: 0;
}

/* Add spacing after form groups to prevent overlap */
.form-label + .form-control,
.form-label + .form-select,
.form-label + .input-group {
    margin-bottom: 0;
}

/* Ensure validation messages have proper spacing */
.form-control + .invalid-feedback,
.form-control + .valid-feedback,
.form-select + .invalid-feedback,
.form-select + .valid-feedback,
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
    margin-top: 6px;
    margin-bottom: 0;
    min-height: 20px;
}

/* Add extra margin to containers with validation */
.col-12.mb-3:has(.invalid-feedback:not(:empty)),
.col-12.mb-3:has(.valid-feedback:not(:empty)),
.col-12.mb-4:has(.invalid-feedback:not(:empty)),
.col-12.mb-4:has(.valid-feedback:not(:empty)) {
    margin-bottom: 2rem !important;
    padding-bottom: 0.5rem;
}

/* Fallback for browsers without :has() support */
.mb-3 .invalid-feedback,
.mb-3 .valid-feedback,
.mb-4 .invalid-feedback,
.mb-4 .valid-feedback {
    display: block;
    min-height: 20px;
}

/* Subdomain validation feedback positioning */
.subdomain-field .invalid-feedback,
.subdomain-field .valid-feedback {
    position: relative;
    margin-top: 8px;
    margin-left: 0;
    width: 100%;
    clear: both;
    display: block !important;
    z-index: 1;
}

/* Better spacing for subdomain field */
.subdomain-field {
    position: relative;
    z-index: 1;
}

/* Ensure input group doesn't interfere with feedback */
.subdomain-field .input-group {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.subdomain-field .input-group + .invalid-feedback,
.subdomain-field .input-group + .valid-feedback {
    margin-top: 8px;
    position: relative;
    display: block !important;
    z-index: 0;
    clear: both;
}

/* Subdomain preview styling */
.subdomain-preview {
    display: block !important;
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    clear: both;
}

/* Field Status Indicators */
.field-status {
    position: relative;
}

.field-status::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.field-status.is-valid::after {
    background-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-size: 10px 10px;
    background-position: center;
    background-repeat: no-repeat;
}

.field-status.is-invalid::after {
    background-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 10px 10px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Enhanced Field Indicators */
.field-success-indicator,
.field-error-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 5;
    animation: fadeInScale 0.3s ease;
    pointer-events: none;
}

/* Special handling for indicators within input-group */
.input-group .field-success-indicator,
.input-group .field-error-indicator {
    right: 120px; /* Account for input-group-text width with padding */
}

/* Position subdomain indicator inside the input but before input-group-text */
.subdomain-field .input-group {
    position: relative;
}

.subdomain-field .input-group .form-control {
    padding-right: 200px; /* Make room for indicator and .vaultforge.uk text */
}

.subdomain-field .input-group .field-success-indicator,
.subdomain-field .input-group .field-error-indicator {
    right: 140px; /* Position before .vaultforge.uk text (leaves ~40px for the text) */
    z-index: 3;
}

/* Ensure input-group-text stays visible and is properly positioned */
.subdomain-field .input-group-text {
    position: relative;
    z-index: 4;
    min-width: 140px; /* Ensure .vaultforge.uk text has enough space */
    flex-shrink: 0;
}

.field-success-indicator {
    background-color: var(--success-color);
}

.field-error-indicator {
    background-color: var(--danger-color);
}

/* Mod Category Badge Colors */
.badge-category-gameplay {
    background-color: #0d6efd !important; /* Primary blue */
    color: white !important;
    border: none !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category-building {
    background-color: #fd7e14 !important; /* Orange */
    color: white !important;
    border: none !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category-ui {
    background-color: #6f42c1 !important; /* Purple */
    color: white !important;
    border: none !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category-world {
    background-color: #198754 !important; /* Green */
    color: white !important;
    border: none !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category-combat {
    background-color: #dc3545 !important; /* Red */
    color: white !important;
    border: none !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category-magic {
    background-color: #d63384 !important; /* Pink/Magenta */
    color: white !important;
    border: none !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category-default {
    background-color: #6c757d !important; /* Gray fallback */
    color: white !important;
    border: none !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure mod card badges are visible */
.mod-card .badge {
    display: inline-block !important;
    margin-top: 0.5rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.mod-card .badge-category-gameplay,
.mod-card .badge-category-building,
.mod-card .badge-category-ui,
.mod-card .badge-category-world,
.mod-card .badge-category-combat,
.mod-card .badge-category-magic {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Disabled Button State */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
}

/* Form Group Enhancements */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group.has-validation {
    margin-bottom: 2rem;
}

/* Input Group Enhancements */
.input-group {
    position: relative;
    z-index: 1;
}

.input-group .form-control {
    border-radius: 8px 0 0 8px;
    position: relative;
    z-index: 1;
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
    border-left: none;
    position: relative;
    z-index: 1;
}

.input-group .input-group-text {
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--border-color);
    background-color: var(--light-color);
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Subdomain input group specific styling */
.input-group-lg .form-control {
    padding: 16px 20px;
    font-size: 16px;
    min-height: 56px;
}

.input-group-lg .input-group-text {
    padding: 16px 20px;
    font-size: 16px;
    min-height: 56px;
    background-color: var(--bg-secondary);
    border-left: none;
    color: var(--text-primary);
    font-weight: 500;
}

#subdomain:focus + .input-group-text {
    border-color: var(--accent-color);
    background-color: var(--bg-secondary);
}

/* Ensure subdomain input has proper spacing */
#subdomain {
    flex: 1;
    min-width: 200px;
}

/* Mobile subdomain improvements */
@media (max-width: 768px) {
    .input-group-lg .form-control {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .input-group-lg .input-group-text {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 52px;
    }
    
    #subdomain {
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .input-group-lg .form-control {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .input-group-lg .input-group-text {
        padding: 12px 14px;
        font-size: 13px;
        min-height: 48px;
    }
    
    #subdomain {
        min-width: 120px;
    }
}

/* Step Indicator - Modern Design */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

.step.active .step-number {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
}

.step-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.step.active .step-label {
    color: var(--accent-color);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success-color);
    font-weight: 600;
}

/* Mod Selection */
.mod-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.mod-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.mod-card.selected {
    border-color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
}

/* Ensure mod card content is properly spaced */
.mod-card .card-body {
    padding: 1rem;
}

.mod-card .form-check-label {
    display: block;
    width: 100%;
}

.mod-card .badge {
    margin-top: 0.75rem !important;
    display: inline-block !important;
    position: relative;
    z-index: 1;
}

.mod-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Radio Button Validation Styling */
.btn-check:checked + .btn {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3) !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.btn-check:checked + .btn .fw-bold {
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.15em !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.btn-check:checked + .btn small,
.btn-check:checked + .btn .text-muted {
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.95em !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

/* Force white color on all text inside selected server size button */
.btn-check:checked + .btn,
.btn-check:checked + .btn * {
    color: white !important;
}

.btn-check:checked + .btn .text-muted {
    color: white !important;
    opacity: 1 !important;
}

.btn-check:checked + .btn::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.btn-check:checked + .btn:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

/* Dark mode specific radio button styling */
[data-theme="dark"] .btn-check:checked + .btn {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

/* Server Status */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-running {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status-stopped {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.status-provisioning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.status-failed {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

/* Dashboard */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.server-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Server Card Layout Fixes */
.server-card {
    position: relative;
    overflow: hidden;
}

.server-card .btn-group {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.server-card .col-md-6.text-md-end {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .server-card .col-md-6.text-md-end {
        align-items: flex-end;
    }
}

/* Ensure buttons stay within card on mobile */
@media (max-width: 767px) {
    .server-card .btn-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .server-card .btn-group .btn {
        flex: 1 1 auto;
        min-width: 80px;
    }
    
    .server-card .col-md-6 {
        margin-top: 1rem;
    }
}

/* Responsive Design - Enhanced */
@media (max-width: 1200px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .step-indicator {
        margin-bottom: 2rem;
    }
    
    .step {
        margin: 0 1rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero section already handled above */
    
    /* Step indicator improvements */
    .step-indicator {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .step {
        margin: 0.75rem 0;
        flex-direction: row;
        align-items: center;
        width: 100%;
        max-width: 300px;
    }
    
    .step-number {
        margin-right: 0.75rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-label {
        font-size: 14px;
        text-align: left;
    }
    
    /* Pricing cards */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Form improvements */
    .form-control, .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 14px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    /* Button improvements */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 48px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 40px;
    }
    
    /* Stack form elements vertically on mobile */
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Server size selection improvements */
    .row.g-2 .col-4 {
        margin-bottom: 0.75rem;
    }
    
    .row.g-2 .col-4 .btn {
        padding: 12px 8px;
        font-size: 12px;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Adjust mod cards for mobile */
    .mod-card {
        margin-bottom: 1rem;
    }
    
    /* Toast positioning for mobile */
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    /* Footer improvements */
    .footer .row {
        text-align: center;
    }
    
    .footer .col-md-6:last-child {
        margin-top: 1rem;
    }
    
    /* Flash messages */
    .container.mt-5.pt-4 {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }
    
    /* Input groups */
    .input-group .form-control {
        font-size: 16px;
    }
    
    .input-group-text {
        font-size: 14px;
        padding: 12px 14px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .step-indicator {
        margin-bottom: 1.5rem;
    }
    
    .step {
        margin: 0.5rem 0;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Form spacing adjustments */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Input group adjustments */
    .input-group .form-control {
        font-size: 16px;
    }
    
    /* Server size selection on mobile */
    .row.g-2 .col-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .step-indicator {
        margin-bottom: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-control, .form-select {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 0.5px;
    }
}

/* Mobile-specific improvements */
@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 48px;
    }
    
    .form-control, .form-select {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .step-label {
        font-size: 11px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .mod-card:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
    }
    
    .form-check-label {
        padding-left: 0.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .step-indicator {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-text h6 {
    margin: 0;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: white;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: rgba(255,255,255,0.8);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner-actions .btn {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Cookie Settings Modal */
.cookie-category {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--light-color);
}

.cookie-category h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.cookie-category .form-check-input:disabled {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Footer Enhancements */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

footer .d-flex.gap-3 a {
    transition: all 0.2s ease;
}

footer .d-flex.gap-3 a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Footer Font Consistency */
.footer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer small {
    font-weight: 500;
    color: var(--text-secondary);
}

.footer a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

/* Form Elements Theme Support */
.form-control {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.form-control:focus {
    background-color: var(--input-bg) !important;
    border-color: var(--accent-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25) !important;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
    background-color: transparent !important;
    border: 1px solid transparent;
    color: var(--text-primary) !important;
}

.nav-tabs .nav-link:hover {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.nav-tabs .nav-link.active {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    border-bottom: 2px solid var(--accent-color);
}

/* Tab Content */
.tab-content {
    background-color: transparent !important;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* Form Labels */
.form-label {
    color: var(--text-primary);
}

/* Form Text */
.form-text {
    color: var(--text-muted);
}

/* Password Toggle Icon Theming */
.password-toggle,
.input-group-text,
.btn-outline-secondary {
    background-color: transparent !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

/* Alert Messages */
.alert {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Legal Pages Text */
.legal-content,
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6,
.legal-content p,
.legal-content li,
.legal-content a {
    color: var(--text-primary) !important;
}

/* Legal Page Styles */
.legal-content {
    line-height: 1.7;
}

.legal-content h2 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-content h4 {
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.legal-content ul, .legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content table {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.legal-content table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    border: none;
    color: var(--text-primary);
}

.legal-content table td {
    border-color: var(--border-color);
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-banner-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-banner-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Utility Classes */
.text-gradient {
    color: var(--accent-color);
}

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

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

/* Theme Toggle Styles */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle .btn {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle .btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-icon-dark,
.theme-icon-light {
    transition: all 0.3s ease;
}

/* Dark mode specific adjustments */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] * {
    border-color: var(--border-color);
}

[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .navbar {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

[data-theme="dark"] footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .bg-light {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .hero-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .price-period {
    color: var(--text-muted);
}

[data-theme="dark"] .bg-primary {
    background: var(--gradient-primary) !important;
}

[data-theme="dark"] .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Bootstrap overrides for dark mode */
[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .border-light {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

/* Gaming Page Styles */
.game-card {
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.game-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-available {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.status-coming_soon {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.status-planned {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.feature-tag i {
    color: var(--success-color);
    font-size: 0.7rem;
}

.game-select-btn {
    transition: all 0.3s ease;
}

.game-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}


/* Mobile Gaming Page Styles */
@media (max-width: 768px) {
    .game-image-container {
        height: 180px;
    }
    
    .game-card:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .game-card:hover .game-image {
        transform: none;
    }
    
    .features-list {
        gap: 0.25rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .game-image-container {
        height: 160px;
    }
}

/* Dashboard Order Items - Responsive Layout */
.order-item {
    position: relative;
}

.order-item .text-truncate {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-item .min-width-0 {
    min-width: 0;
}

.order-item .flex-shrink-0 {
    flex-shrink: 0;
}

.order-item .btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

.order-item .btn-sm i {
    font-size: 0.7rem;
}

/* Ensure buttons don't overflow on small screens */
@media (max-width: 768px) {
    .order-item .d-flex.gap-1 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .order-item .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* Dashboard Sidebar - Minimal Design */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.dashboard-sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}


.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-left-color: var(--accent-color);
}

.sidebar-nav-item.active {
    color: var(--accent-color);
    background: var(--bg-tertiary);
    border-left-color: var(--accent-color);
}

.sidebar-nav-item i {
    width: 20px;
    margin-right: 0.75rem;
}

.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

/* Move toggle button when sidebar is open - position it below the header */
.dashboard-sidebar.open ~ .sidebar-toggle {
    left: 300px;
    top: 5rem; /* Position below the sidebar header */
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dashboard-content {
    transition: margin-left 0.3s ease;
}

.dashboard-content.sidebar-open {
    margin-left: 280px;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        left: -100%;
        z-index: 1050;
    }
    
    .dashboard-content.sidebar-open {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1051;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    
    /* On mobile, don't move the toggle button when sidebar is open */
    .dashboard-sidebar.open ~ .sidebar-toggle {
        left: 1rem;
        top: 1rem; /* Keep original position on mobile */
    }
    
    .sidebar-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .sidebar-nav-item {
        padding: 1rem 1.5rem;
        font-size: 16px;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-nav-item:last-child {
        border-bottom: none;
    }
    
    .sidebar-nav-item:hover,
    .sidebar-nav-item.active {
        background: var(--bg-tertiary);
        border-left: none;
        border-bottom: 1px solid var(--accent-color);
    }
}


