.theme-light .current-phase {
    color: #b8860b;
}

.theme-light .total-time {
    color: #666666;
}/* Nightreign Timer WordPress Plugin Styles */

.nightreign-timer-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
    padding: 0;
}

.nightreign-timer-wrapper {
    max-width: 100%;
    margin: 0;
    border-radius: 5px;
    padding: 15px;
    position: relative;
}

/* Dark Theme (Default) */
.theme-dark .nightreign-timer-wrapper {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffffff;
}

.theme-dark .nightreign-timer-title {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Light Theme */
.theme-light .nightreign-timer-wrapper {
    background: #c1dff0 !important;
    color: #333333 !important;
    border: 1px solid #000000 !important;
}

/* Force light theme colors even in dark mode */
body.wp-dark-mode-active .theme-light .nightreign-timer-wrapper,
[data-wp-dark-mode-active] .theme-light .nightreign-timer-wrapper {
    background: #c1dff0 !important;
    color: #333333 !important;
    border: 1px solid #000000 !important;
}

.theme-light .nightreign-timer-title {
    color: #b8860b;
}

.theme-light .phase-container {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: #b8860b;
}

.theme-light .phase-label {
    color: #b8860b;
}

.theme-light .progress-bar {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Minimal Theme */
.theme-minimal .nightreign-timer-wrapper {
    background: #ffffff;
    color: #333333;
    border: 2px solid #ffd700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-minimal .nightreign-timer-title {
    color: #333333;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
}

.theme-minimal .phase-container {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #ffd700;
}

.nightreign-timer-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 0;
}

.timer-section {
    margin-bottom: 15px;
}

.phase-container {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid #ffd700;
    transition: all 0.3s ease;
}

.phase-label {
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffd700;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 5px;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.time-display {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
    color: inherit;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.controls {
    text-align: center;
    margin-bottom: 12px;
}

.btn {
    font-size: 0.8em;
    padding: 6px 12px;
    margin: 0 3px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-start {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.btn-start:hover:not(:disabled) {
    background: linear-gradient(45deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-start:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-pause {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
}

.btn-pause:hover {
    background: linear-gradient(45deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.btn-reset {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
}

.btn-reset:hover {
    background: linear-gradient(45deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.status {
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.current-phase {
    font-size: 0.9em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 3px;
}

.total-time {
    font-size: 0.75em;
    color: #cccccc;
}

/* Active phase highlighting */
.phase-container.active {
    border-left-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
}

.phase-container.active .phase-label {
    color: #ff6b35;
}

.phase-container.active .progress-fill {
    background: linear-gradient(90deg, #ff6b35, #e55a2b);
}

/* Completed phase styling */
.phase-container.completed {
    opacity: 0.6;
    border-left-color: #666;
    transform: scale(0.98);
}

.phase-container.completed .progress-fill {
    background: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .nightreign-timer-wrapper {
        padding: 20px;
        margin: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nightreign-timer-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .progress-bar-container {
        gap: 10px;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
    }
    
    .progress-bar {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 16px !important;
        display: block !important;
    }
    
    .progress-fill {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
    
    .phase-container {
        width: 100% !important;
        display: block !important;
        margin-bottom: 12px !important;
    }
    
    .btn {
        font-size: 1em;
        padding: 10px 20px;
        margin: 5px;
    }
    
    .time-display {
        font-size: 1em;
        min-width: 40px;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 480px) {
    .progress-bar-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .time-display {
        text-align: center;
        font-size: 1.1em;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Animation effects */
@keyframes flash {
    0%, 100% { background: inherit; }
    50% { background: rgba(255, 107, 53, 0.3); }
}

@keyframes pulse {
    0%, 100% { 
        background: linear-gradient(135deg, #1a1a2e, #16213e);
    }
    50% { 
        background: linear-gradient(135deg, #2a1a3e, #26214e);
    }
}

.theme-light .pulse-animation {
    animation: pulse-light 2s ease-in-out infinite;
}

@keyframes pulse-light {
    0%, 100% { 
        background: #c1dff0;
    }
    50% { 
        background: #a0c4e0;
    }
}