/* Noah's IELTS Timer - Main Styles */

/* Custom Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 150, 136, 0.1);
    box-shadow: 0 8px 32px rgba(0, 150, 136, 0.1);
}

.custom-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 150, 136, 0.2);
    transition: all 0.3s ease;
    font-size: 16px !important; /* Prevent iOS Safari auto-zoom */
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Additional zoom prevention for all input elements */
input[type="number"] {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

/* Prevent zoom on focus for mobile devices */
@media screen and (max-width: 768px) {
    input[type="number"]:focus {
        font-size: 16px !important;
        transform: none !important;
        zoom: 1 !important;
    }
}

.custom-input:focus {
    outline: none;
    border-color: #26a69a;
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.1);
}

.btn-primary {
    background: #26a69a;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 150, 136, 0.3);
    background: #00897b;
}

.progress-bar {
    background: #26a69a;
}

.sidebar-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 150, 136, 0.1);
    box-shadow: 2px 0 20px rgba(0, 150, 136, 0.05);
    max-height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-panel::-webkit-scrollbar {
    display: none;
}

.sidebar-panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.section-title {
    color: #00695c;
    font-weight: 600;
}

.main-title {
    color: #004d40;
    font-weight: 700;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.timer-display-text {
    color: #333;
    transition: color 0.3s ease;
}

#pauseResumeText {
    transition: opacity 0.3s ease;
}

.timer-circle-container:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Mobile overlay styles */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 50;
}

.mobile-panel.active {
    transform: translateX(0);
}

/* Hamburger menu button */
.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 60;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 150, 136, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.2);
}

.menu-toggle i {
    color: #26a69a;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.menu-toggle.active i {
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .desktop-sidebar {
        display: none;
    }
    
    .timer-container {
        padding: 1rem;
    }
    
    .timer-circle {
        width: 280px;
        height: 280px;
    }
    
    .timer-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .mobile-overlay,
    .mobile-panel {
        display: none;
    }
} 