/* Timer-specific styles */
.timer-hero {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.timer-header {
    max-width: 600px;
    margin: 0 auto;
}

.timer-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.timer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.timer-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.timer-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.timer-container {
    padding: 3rem 0;
    background: #f9fafb;
}

.timer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.timer-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-display {
    text-align: center;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(#10b981 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.timer-circle.running {
    animation: pulse 2s infinite;
}

.timer-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#10b981 0deg, #e5e7eb 0deg);
    transition: background 0.3s ease;
}

.timer-center {
    position: relative;
    z-index: 2;
    background: white;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.timer-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.timer-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.control-btn:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.1);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-section {
    display: flex;
    justify-content: center;
}

.settings-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 400px;
}

.settings-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.setting-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.setting-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.breathing-guide {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 3rem;
    text-align: center;
}

.breathing-guide h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.breathing-circle.inhale {
    animation: breatheIn 4s ease-in-out infinite;
}

.breathing-circle.exhale {
    animation: breatheOut 4s ease-in-out infinite;
}

@keyframes breatheIn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes breatheOut {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.breathing-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.breathing-instructions {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.session-history {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.session-history h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #10b981;
}

.history-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.history-content {
    flex: 1;
}

.history-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.history-details {
    font-size: 0.75rem;
    color: #6b7280;
}

.history-time {
    font-size: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.no-history {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

.related-tools {
    padding: 3rem 0;
    background: white;
}

.related-tools .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-tools .tool-card {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timer-title {
        font-size: 2rem;
    }
    
    .timer-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-center {
        width: 160px;
        height: 160px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 120px;
    }
    
    .breathing-circle {
        width: 150px;
        height: 150px;
    }
    
    .breathing-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .timer-hero {
        padding: 2rem 0;
    }
    
    .timer-title {
        font-size: 1.75rem;
    }
    
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-center {
        width: 130px;
        height: 130px;
    }
    
    .timer-time {
        font-size: 1.5rem;
    }
    
    .settings-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .breathing-guide {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
    }
    
    .breathing-circle {
        width: 120px;
        height: 120px;
    }
    
    .breathing-text {
        font-size: 0.875rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
    }
}
