/* HabitWins Components CSS - UI Components */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.empty-state p {
    opacity: 0.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Touch interaction improvements */
button, .btn, a {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    touch-action: manipulation;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10B981;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.error {
    background: #EF4444;
}

.toast-notification.success {
    background: #10B981;
}

.toast-notification.info {
    background: #3B82F6;
}

/* Daily Quote Section */
.daily-quote {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    color: white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.6;
}

.quote-author {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Admin Badge */
.admin-badge {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

/* Today Sessions Info */
.today-sessions-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sessions-count {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.sessions-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

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

/* Stopwatch Component - Original Styles Restored */
.stopwatch-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.stopwatch-display {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.stopwatch-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.stopwatch-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.stopwatch-btn.start {
    background: #48bb78;
    color: white;
}

.stopwatch-btn.start:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.stopwatch-btn.pause {
    background: #ed8936;
    color: white;
}

.stopwatch-btn.pause:hover {
    background: #dd7724;
    transform: translateY(-2px);
}

.stopwatch-btn.stop {
    background: #f56565;
    color: white;
}

.stopwatch-btn.stop:hover {
    background: #e53e3e;
    transform: translateY(-2px);
}

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

.stopwatch-info {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin-top: 15px;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stopwatch-display {
        font-size: 2.5em;
    }

    .stopwatch-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .stopwatch-btn {
        min-width: 90px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ==================== THEME-SPECIFIC STOPWATCH STYLES ==================== */

/* RAINBOW theme - Purple gradient stopwatch modal */
[data-theme="rainbow"] .stopwatch-display {
    color: #764ba2;
    text-shadow: 0 2px 4px rgba(118, 75, 162, 0.2);
}

[data-theme="rainbow"] .stopwatch-info {
    background: rgba(118, 75, 162, 0.15);
    color: #764ba2;
    border: 1px solid rgba(118, 75, 162, 0.2);
}

[data-theme="rainbow"] .stopwatch-btn.start {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

[data-theme="rainbow"] .stopwatch-btn.pause {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

[data-theme="rainbow"] .stopwatch-btn.stop {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
}

/* NEON theme - Dark modal with neon green accents */
[data-theme="neon"] .modal-content {
    background: #1A1A1A;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

[data-theme="neon"] .modal-header h2 {
    color: #00FF88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

[data-theme="neon"] .stopwatch-display {
    color: #00FF88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    font-weight: 900;
}

[data-theme="neon"] .stopwatch-info {
    background: rgba(0, 255, 136, 0.1);
    color: #B0B0B0;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

[data-theme="neon"] .tracking-label {
    color: #FFFFFF;
}

[data-theme="neon"] .stopwatch-btn.start {
    background: linear-gradient(135deg, #00FF88 0%, #00DD77 100%);
    color: #0A0A0A;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

[data-theme="neon"] .stopwatch-btn.start:hover {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
}

[data-theme="neon"] .stopwatch-btn.pause {
    background: linear-gradient(135deg, #FFBE0B 0%, #E5AB00 100%);
    color: #0A0A0A;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 190, 11, 0.4);
}

[data-theme="neon"] .stopwatch-btn.stop {
    background: linear-gradient(135deg, #FF006E 0%, #DD005C 100%);
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

/* MINIMAL theme - Clean blue professional stopwatch */
[data-theme="minimal"] .modal-content {
    background: #F8FAFC;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

[data-theme="minimal"] .modal-header h2 {
    color: #2563EB;
}

[data-theme="minimal"] .stopwatch-display {
    color: #2563EB;
    font-weight: 700;
}

[data-theme="minimal"] .stopwatch-info {
    background: rgba(37, 99, 235, 0.08);
    color: #64748B;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

[data-theme="minimal"] .tracking-label {
    color: #475569;
}

[data-theme="minimal"] .stopwatch-btn.start {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

[data-theme="minimal"] .stopwatch-btn.pause {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

[data-theme="minimal"] .stopwatch-btn.stop {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .toast-notification.show {
        transform: translateY(0);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        padding: 15px 30px;
        font-size: 1rem;
    }
}