/* Dashboard-specific styles extracted from dashboard.php */

/* Modern Material Design 3.0 Inspired Theme */
:root {
    /* Primary Colors - Matching CheckHub Orange */
    --primary-color: #FF9000;
    --primary-dark: #E6800F;
    --primary-light: #FFB84D;
    
    /* Surface Colors - Modern Dark Theme */
    --surface-primary: #0A0A0A;
    --surface-secondary: #1A1A1A;
    --surface-tertiary: #2A2A2A;
    --surface-elevated: #353535;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-tertiary: #BDBDBD;
    --text-disabled: #757575;
    
    /* Semantic Colors */
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Dashboard Layout */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.app-title {
    font-size: 24px;
    font-weight: bold;
    color: #ff9900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-badge {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    color: #ff9900;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

.vip-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    color: #ff9900;
    padding: 8px 12px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.theme-toggle:hover {
    background: rgba(255, 153, 0, 0.2);
    transform: scale(1.1);
}

/* Light Theme Overrides */
body.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    color: #1f2937;
}

.light-theme .header-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
}

.light-theme .app-title {
    color: #ea580c; /* Darker Orange for WCAG AA compliance */
}

.light-theme .theme-toggle {
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: #ea580c;
}

.light-theme .theme-toggle:hover {
    background: rgba(234, 88, 12, 0.2);
}

.light-theme .user-badge {
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: #ea580c;
}

/* Real-time Statistics Panel */
.stats-panel {
    background: rgba(17, 17, 17, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.03);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9900, transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #ff9900;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card.live .stat-value {
    color: #ff9900;
}

.stat-card.dead .stat-value {
    color: #ef4444;
}

.stat-card.error .stat-value {
    color: #fbbf24;
}

.stat-card.speed .stat-value {
    color: #60a5fa;
}

/* Light theme adjustments for stats */
.light-theme .stats-panel {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.light-theme .stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .stat-label {
    color: #374151;
}

.light-theme .stat-card.live .stat-value {
    color: #ea580c;
}

.light-theme .stat-card.dead .stat-value {
    color: #dc2626;
}

.light-theme .stat-card.error .stat-value {
    color: #d97706;
}

.light-theme .stat-card.speed .stat-value {
    color: #2563eb;
}

/* Method Section */
.method-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.method-label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: bold;
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
}

.method-select {
    background: rgba(31, 41, 55, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 20px;
    min-width: 250px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-select:hover {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

/* VIP-locked options styling */
.method-select option.vip-locked {
    color: #6b7280;
    background: rgba(75, 85, 99, 0.3);
    opacity: 0.6;
}

.method-select option:disabled {
    color: #6b7280 !important;
    opacity: 0.5;
}

/* Light theme method elements */
.light-theme .method-label {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.light-theme .method-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

.light-theme .method-select:hover {
    border-color: rgba(251, 146, 60, 0.5);
}

.light-theme .method-select option.vip-locked {
    color: #9ca3af;
    background: rgba(209, 213, 219, 0.3);
}

.light-theme .method-select option:disabled {
    color: #9ca3af !important;
}

/* Progress Section */
.progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card-count {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    color: #ff9900;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
}

.progress-bar {
    flex: 1;
    height: 30px;
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-width: 200px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9900, #ff7f00);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
}

/* Light theme progress */
.light-theme .card-count {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    color: #ea580c;
}

.light-theme .progress-bar {
    background: rgba(229, 231, 235, 0.6);
    border: 2px solid #e5e7eb;
}

.light-theme .progress-fill {
    background: linear-gradient(90deg, #6b7280, #fb923c);
}

/* Controls Section */
.controls-section {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::before {
    width: 200px;
    height: 200px;
}

.btn-start {
    background: linear-gradient(135deg, #ff9900, #ff7f00);
    color: white;
}

.btn-start:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff7f00, #ff6a00);
    transform: translateY(-2px);
}

.btn-stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-stop:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.btn-clear {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-clear:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
}

.btn-generate {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

.btn-generate:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
}

/* Light theme buttons */
.light-theme .btn-start {
    background: linear-gradient(135deg, #6b7280, #fb923c);
}

.light-theme .btn-start:hover:not(:disabled) {
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

/* Input Section */
.input-section {
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    color: #ff9900;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #ff9900, #ff7f00);
    border-radius: 2px;
    transform: translateY(-50%);
}

.input-group {
    margin-bottom: 15px;
}

.input-label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 13px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 153, 0, 0.3);
}

.form-input:focus {
    outline: none;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 153, 0, 0.4);
}

.form-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-textarea:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 153, 0, 0.3);
}

.form-textarea:focus {
    outline: none;
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 153, 0, 0.4);
}

/* Light theme input section */
.light-theme .input-section {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e5e7eb;
}

.light-theme .section-title {
    color: #fb923c;
}

.light-theme .section-title::before {
    background: linear-gradient(180deg, #fb923c, #ea580c);
}

.light-theme .input-label {
    color: #6b7280;
}

.light-theme .form-input,
.light-theme .form-textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    color: #1f2937;
}

.light-theme .form-input:hover,
.light-theme .form-textarea:hover {
    border-color: rgba(251, 146, 60, 0.5);
}

.light-theme .form-input:focus,
.light-theme .form-textarea:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* Results Section */
.results-section {
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-panel {
    border-radius: 12px;
    padding: 15px;
    min-height: 200px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.result-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 2s ease-in-out;
}

.result-panel:hover::before {
    animation: shimmer 2s ease-in-out;
}

.result-panel.live {
    background: rgba(74, 222, 128, 0.05);
    border: 2px solid rgba(74, 222, 128, 0.2);
}

.result-panel.live:hover {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.08);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.2);
}

.result-panel.dead {
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.result-panel.dead:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.result-panel.error {
    background: rgba(251, 191, 36, 0.05);
    border: 2px solid rgba(251, 191, 36, 0.2);
}

.result-panel.error:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.panel-title {
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    min-width: 100px;
    text-align: center;
}

.panel-title.live {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    color: #ff9900;
}

.panel-title.dead {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.panel-title.error {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.panel-actions {
    display: flex;
    gap: 5px;
}

.panel-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-btn:hover {
    transform: scale(1.05);
}

.panel-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.panel-content.live {
    color: #ff9900;
}

.panel-content.dead {
    color: #ef4444;
}

.panel-content.error {
    color: #fbbf24;
}

/* Light theme results section */
.light-theme .results-section {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e5e7eb;
}

.light-theme .panel-content {
    background: rgba(248, 250, 252, 0.9);
    color: #6b7280;
}

.light-theme .panel-content.live {
    color: #ea580c;
}

.light-theme .panel-content.dead {
    color: #dc2626;
}

.light-theme .panel-content.error {
    color: #d97706;
}

.light-theme .panel-title.live {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    color: #ea580c;
}

.light-theme .result-panel.live {
    background: rgba(251, 146, 60, 0.08);
    border: 2px solid rgba(251, 146, 60, 0.4);
}

.light-theme .result-panel.live:hover {
    border-color: rgba(251, 146, 60, 0.6);
    background: rgba(251, 146, 60, 0.12);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: linear-gradient(135deg, #0f0f0f 0%, #111111 50%, #0f0f0f 100%);
    margin: 20px auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    /* Add padding for scrollbar on small screens */
    padding-right: 45px;
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    color: #ff9900;
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.help-text {
    background: rgba(255, 153, 0, 0.08);
    border: 1px solid rgba(255, 153, 0, 0.25);
    border-radius: 10px;
    padding: 15px;
    color: #ff9900;
    font-size: 12px;
    line-height: 1.5;
    margin: 15px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Gate Status Indicator */
.gate-status-indicator {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
}

.gate-status-indicator .status-icon {
    font-size: 16px;
}

.gate-status-indicator .status-message {
    font-weight: bold;
}

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

.light-theme .gate-status-indicator {
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #d97706;
}

/* VIP-locked general styling */
.vip-locked {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

/* Gate maintenance styling */
.method-select option.gate-down {
    color: #fbbf24 !important;
    opacity: 0.6 !important;
    background: rgba(251, 191, 36, 0.1) !important;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: 15px;
    }
    
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .header-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .app-title {
        font-size: 20px;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .user-badge, .vip-badge, .logout-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .method-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .method-label {
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .method-select {
        min-width: auto;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .progress-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-count {
        text-align: center;
        font-size: 12px;
    }
    
    .progress-bar {
        min-width: auto;
        height: 25px;
    }
    
    .progress-text {
        font-size: 11px;
    }
    
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .stat-value {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .controls-section {
        justify-content: center;
        gap: 8px;
        margin: 15px 0;
    }
    
    .btn {
        min-width: auto;
        flex: 1;
        padding: 10px 16px;
        font-size: 12px;
        gap: 6px;
    }
    
    .input-section, .results-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .input-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-input, .form-textarea {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .form-textarea {
        min-height: 120px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .result-panel {
        padding: 12px;
        min-height: 150px;
    }
    
    .panel-title {
        font-size: 11px;
        padding: 6px 10px;
        min-width: 80px;
    }
    
    .panel-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .panel-content {
        font-size: 11px;
        min-height: 100px;
        max-height: 200px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
        padding-right: 20px; /* Reset padding on mobile */
        width: calc(100% - 20px);
        max-width: none;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .help-text {
        font-size: 11px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 8px;
    }
    
    .stats-panel {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .controls-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-info {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .theme-toggle {
        align-self: flex-end;
        margin-bottom: 10px;
    }
}

/* VIP badge glow animation */
.vip-badge {
    animation: vipGlow 2s ease-in-out infinite alternate;
}

@keyframes vipGlow {
    from { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3); }
}

/* Pulse animation for active cards */
.pulse {
    animation: pulse 2s infinite;
}

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

/* Enhanced card hover effects */
.header-card, .stats-panel, .input-section, .results-section {
    transition: all 0.3s ease;
}

.header-card:hover, .stats-panel:hover, 
.input-section:hover, .results-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Improved stat card animations */
.stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-card:active {
    transform: translateY(-1px) scale(0.98);
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Light theme scrollbar */
.light-theme ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Logo Font Styling - Consistent CheckHub Brand */
.logo-font {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.logo-font:hover {
    transform: scale(1.05);
}

.logo-check {
    color: #ffffff;
    background: #000000;
    padding: 8px 12px;
    margin-right: 2px;
    border-radius: 4px 0 0 4px;
}

.logo-hub {
    color: #000000;
    background: #FF9000;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
}

/* Utility Classes for Consistent Design System */

/* Display Utilities */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

/* Flexbox Utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

/* Gap Utilities */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

/* Text Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: #FFFFFF; }
.text-secondary { color: #E0E0E0; }
.text-accent { color: #FF9000; }
.text-surface { color: #000000; }

/* Background Utilities */
.bg-primary { background-color: #0A0A0A; }
.bg-secondary { background-color: #1A1A1A; }
.bg-tertiary { background-color: #2A2A2A; }
.bg-surface { background-color: #000000; }
.bg-accent { background-color: #FF9000; }
.bg-transparent { background-color: transparent; }

/* Light Theme Text Utilities */
.light-theme .text-primary { color: #1f2937; }
.light-theme .text-secondary { color: #4b5563; }
.light-theme .text-accent { color: #ea580c; }
.light-theme .text-surface { color: #ffffff; }

/* Light Theme Background Utilities */
.light-theme .bg-primary { background-color: #ffffff; }
.light-theme .bg-secondary { background-color: #f8fafc; }
.light-theme .bg-tertiary { background-color: #f1f5f9; }
.light-theme .bg-surface { background-color: #000000; }
.light-theme .bg-accent { background-color: #ea580c; }

/* Button Utility Classes */
.btn-primary {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    color: #ff9900;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Typing indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ff9900;
    font-size: 12px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #ff9900;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Live notification styles */
.live-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #ff9900, #ff7f00);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-weight: bold;
    font-size: 14px;
}

.live-notification.show {
    transform: translateX(0);
}

/* Loading indicator */
.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;
}

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