/* Focused timer styling - Minutes and Seconds only */
body.timer-page {
    background: url('images/ChatGPT Image Apr 9, 2025, 03_52_16 AM.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.timer-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.timer-container {
    max-width: 600px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    text-align: center;
}

/* Clean timer circle */
.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.timer-progress {
    position: absolute;
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 15;
}

.timer-progress-indicator {
    fill: none;
    stroke: #4cd964;
    stroke-width: 15;
    stroke-linecap: round;
    stroke-dasharray: 754;
    stroke-dashoffset: 754;
    transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(76, 217, 100, 0.5));
}

.timer-display {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-digits {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 2px;
}

.timer-separator {
    display: inline-block;
    animation: blink 1.5s infinite;
}

.timer-label {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Timer input controls */
.timer-input {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.time-setter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.time-setter label {
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stepper {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.stepper-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.stepper-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stepper input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    background: transparent;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Timer buttons */
.timer-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.timer-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.start-btn {
    background: rgba(76, 217, 100, 0.8);
    box-shadow: 0 5px 15px rgba(76, 217, 100, 0.3);
}

.pause-btn {
    background: rgba(255, 204, 0, 0.8);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.reset-btn {
    background: rgba(255, 59, 48, 0.8);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

.timer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Timer completion animation */
.timer-complete .timer-progress-indicator {
    stroke: #ff3b30 !important;
    filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.7));
    animation: pulsing 1.5s infinite;
}

@keyframes pulsing {
    0% { stroke-width: 15; }
    50% { stroke-width: 20; }
    100% { stroke-width: 15; }
}

/* Voice command section */
.voice-commands {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.voice-commands h2 {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.command-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.enhanced-commands {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.enhanced-commands li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.command-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(58, 123, 213, 0.8);
    color: white;
    font-size: 1.2rem;
}

.command-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.command-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-digits {
        font-size: 3rem;
    }
    
    .timer-input {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .command-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-btn {
        width: 100%;
    }
}
