/*!
 * Data Sharing Web Tool - Custom Styles
 * Modern, Clean, Responsive Design
 */

/* ==========================================
   CSS Variables & Theme
   ========================================== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
}

/* Dark Theme - Colorful & Visible */
[data-theme="dark"] {
    --light-bg: #1a1a2e;
    --card-bg: #16213e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #4a5568;
    --dark-bg: #0f0f23;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0; /* Reduced padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    padding: 0.4rem 0; /* Even smaller on scroll */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.75rem;
}

.theme-toggle {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%; /* Circular */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

@media (max-width: 480px) {
    .theme-toggle, .profile-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .user-emoji {
        font-size: 1.25rem;
    }
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.profile-toggle {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.user-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu-custom.show {
    display: flex;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

.dropdown-item-custom {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.dropdown-item-custom:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .dropdown-menu-custom {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    border-color: #4a90d9;
}

[data-theme="dark"] .dropdown-header {
    border-bottom-color: #4a90d9;
    color: #00d9ff;
}

[data-theme="dark"] .profile-toggle {
    background: rgba(22, 33, 62, 0.8);
    border-color: rgba(74, 144, 217, 0.5);
}

/* ==========================================
   Cards & Containers
   ========================================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

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

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

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

textarea.form-control,
input[type="text"],
input[type="number"],
input[type="datetime-local"],
select.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: var(--transition);
}

textarea.form-control:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.5;
}

textarea.form-control.readonly-textarea {
    background: var(--light-bg);
    border-color: var(--border-color);
    cursor: default;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-bg);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-upload-input {
    display: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.file-preview {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Expiry Options */
.expiry-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.expiry-option {
    position: relative;
}

.expiry-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.expiry-option label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    background: var(--card-bg);
    color: var(--text-primary);
}

.expiry-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.expiry-option label:hover {
    border-color: var(--primary-color);
}

.custom-expiry {
    margin-top: 1rem;
    display: none;
}

.custom-expiry.show {
    display: block;
}

/* Premium Option */
.premium-option label {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fff !important;
    border: 2px solid #764ba2 !important;
    position: relative;
    overflow: hidden;
}

.premium-option label::before {
    content: '👑';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

.premium-option label:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

.btn-success:hover {
    background: #059669;
}

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

.btn-secondary:hover {
    background: #475569;
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================
   Result Page - Generated Link
   ========================================== */
.link-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.link-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: monospace;
    background: var(--light-bg);
    color: var(--text-primary);
}

.link-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.copy-feedback {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.copy-feedback.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* QR Code */
.qr-container {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 1rem 0;
}

.qr-container canvas {
    max-width: 200px !important;
    height: auto !important;
}

/* Info Boxes */
.info-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-box.info {
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--primary-color);
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
}

.info-box.success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
}

.info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================
   View Page - Content Display
   ========================================== */
.content-display {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 500px;
    overflow: auto;
}

.content-display pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.file-display {
    text-align: center;
    padding: 2rem;
}

.file-display img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.file-meta {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.file-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ==========================================
   Error Page
   ========================================== */
.error-container {
    text-align: center;
    padding: 3rem 1rem;
}

.error-icon {
    font-size: 5rem;
    color: var(--danger-color);
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    text-align: center;
    padding: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   Loading & Spinner
   ========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: white;
    margin-top: 1rem;
    font-size: 1.125rem;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .container-custom {
        padding: 1rem;
    }
    
    .header-content {
        padding: 0 0.5rem;
    }

    .card {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .link-display {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .file-actions {
        flex-direction: column;
    }
    
    .file-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .logo span {
        display: none; /* Hide 'DataShare' text but keep icon */
    }

    .header-actions {
        gap: 0.5rem;
    }

    .expiry-option {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 120px;
    }
    
    .expiry-option label {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container-custom .d-flex.flex-wrap {
        flex-direction: column !important;
        align-items: center;
    }
    
    .container-custom .card[style*="min-width: 200px"] {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 400px) {
    .expiry-option {
        flex: 1 1 100%;
    }
}

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

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

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

.slide-in {
    animation: slideIn 0.4s ease forwards;
}

/* ==========================================
   Result Page - Visible in Both Themes
   ========================================== */
.success-icon-large i {
    font-size: 4rem;
}

h3.mt-3 {
    color: #1e293b !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.info-box .info-icon {
    color: #2563eb !important;
    font-size: 1.5rem;
}

.info-box .info-text {
    color: #334155 !important;
    font-size: 1rem;
}

.info-box .info-text strong {
    color: #1e293b !important;
}

/* ==========================================
   Dark Theme - Colorful & Visible
   ========================================== */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

[data-theme="dark"] .card {
    background: linear-gradient(145deg, #1e3a5f 0%, #162447 100%);
    border: 1px solid #4a90d9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .header {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 144, 217, 0.3);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(22, 33, 62, 0.95);
    border-bottom: 1px solid #4a90d9;
}

[data-theme="dark"] .logo {
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 2px solid #4a90d9;
    color: #00ff88;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-control:focus {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-control::placeholder {
    color: #7fba7f;
}

[data-theme="dark"] .file-upload-area {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 2px dashed #4a90d9;
}

[data-theme="dark"] .file-upload-area:hover {
    background: linear-gradient(145deg, #2d4a6f, #1e3a5f);
    border-color: #00d9ff;
}

[data-theme="dark"] .file-upload-icon {
    color: #00d9ff;
}

[data-theme="dark"] .file-info {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 1px solid #4a90d9;
}

[data-theme="dark"] .content-display {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 2px solid #4a90d9;
}

[data-theme="dark"] .content-display pre {
    color: #00ff88;
    text-shadow: 0 0 2px rgba(0, 255, 136, 0.3);
}

[data-theme="dark"] .link-input {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 2px solid #4a90d9;
    color: #00ff88;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-item {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 1px solid #4a90d9;
}

[data-theme="dark"] .stat-value {
    color: #00d9ff;
}

[data-theme="dark"] .info-box.info {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.4), rgba(0, 255, 136, 0.2)) !important;
    border-left: 5px solid #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

[data-theme="dark"] .info-box.warning {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.4), rgba(255, 107, 107, 0.2)) !important;
    border-left: 5px solid #ffc107 !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .info-box.success {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.4), rgba(0, 217, 255, 0.2)) !important;
    border-left: 5px solid #00d9ff !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

[data-theme="dark"] .card-title {
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

[data-theme="dark"] .form-label {
    color: #00ff88;
    font-weight: 600;
}

[data-theme="dark"] .text-muted {
    color: #a0c4ff !important;
}

[data-theme="dark"] .expiry-option label {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 2px solid #4a90d9;
    color: #e0e0e0;
}

[data-theme="dark"] .expiry-option input[type="radio"]:checked + label {
    background: linear-gradient(145deg, #00ff88, #00d9ff);
    border-color: #00ff88;
    color: #1a1a2e;
    font-weight: 700;
}

[data-theme="dark"] .footer {
    background: transparent;
    border-top: none;
    color: var(--text-secondary);
}

[data-theme="dark"] .file-meta {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 1px solid #4a90d9;
}

[data-theme="dark"] .file-meta-item {
    border-bottom-color: #4a90d9;
}

[data-theme="dark"] .display-5,
[data-theme="dark"] .lead {
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Extra Colorful Effects */
[data-theme="dark"] .success-icon-large i {
    color: #00ff88 !important;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.8), 0 0 60px rgba(0, 255, 136, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 40px rgba(0, 255, 136, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(0, 255, 136, 1), 0 0 60px rgba(0, 255, 136, 0.6), 0 0 90px rgba(0, 255, 136, 0.3);
    }
}

[data-theme="dark"] .form-label {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .text-muted {
    color: #ff6b6b !important;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Special Result Page Styling */
[data-theme="dark"] .result-page > .card {
    background: linear-gradient(145deg, #1e3a5f 0%, #162447 50%, #0f3460 100%);
    border: 2px solid #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .result-page h3 {
    background: linear-gradient(45deg, #00ff88, #00d9ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

[data-theme="dark"] .result-page .tip-list {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(0, 255, 136, 0.08));
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
}

[data-theme="dark"] .result-page .card-header {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.1));
    border-bottom: 2px solid #00ff88;
    border-radius: 12px 12px 0 0;
}

[data-theme="dark"] .card-title {
    color: #00d9ff !important;
}

[data-theme="dark"] .text-primary {
    color: #00d9ff !important;
}

[data-theme="dark"] .text-success {
    color: #00ff88 !important;
}

[data-theme="dark"] .text-warning {
    color: #ffc107 !important;
}

[data-theme="dark"] .text-danger {
    color: #ff6b6b !important;
}

/* Authentication Pages Visibility */
[data-theme="dark"] .auth-container h2 {
    color: #00d9ff !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    font-weight: 800;
}

[data-theme="dark"] .auth-container p {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .auth-container p a {
    color: #00ff88 !important;
    font-weight: 700;
    text-decoration: none;
}

[data-theme="dark"] .auth-container p a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(45deg, #00d9ff, #00ff88) !important;
    border: none !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(45deg, #00ff88, #00d9ff) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5) !important;
    transform: translateY(-2px);
}

/* Result Page - Colorful Text */
[data-theme="dark"] h3 {
    color: #00ff88 !important;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.4);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

[data-theme="dark"] .info-text {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
}

[data-theme="dark"] .stat-label {
    color: #00d9ff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .list-unstyled li {
    color: #ffd700 !important;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.3);
}

[data-theme="dark"] .list-unstyled li:last-child {
    border-bottom: none;
}

[data-theme="dark"] .list-unstyled li i {
    color: #00ff88 !important;
    font-size: 1.2rem;
}

[data-theme="dark"] .info-box .info-icon {
    color: #ff6b6b !important;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

[data-theme="dark"] .info-box {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.3), rgba(0, 217, 255, 0.2)) !important;
    border: 2px solid #ff6b6b !important;
    border-radius: 12px;
}

[data-theme="dark"] .info-box strong {
    color: #ff6b6b !important;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

[data-theme="dark"] .qr-container {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a);
    border: 3px solid #00ff88;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

[data-theme="dark"] .stat-item {
    background: linear-gradient(145deg, #1e3a5f, #0d1b2a) !important;
    border: 2px solid #00d9ff !important;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

[data-theme="dark"] .stat-value {
    color: #00ff88 !important;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

[data-theme="dark"] .stat-value i {
    color: #00d9ff !important;
    font-size: 1.5rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

[data-theme="dark"] .text-success {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

[data-theme="dark"] .card-title {
    background: linear-gradient(90deg, #00ff88, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
