/**
 * Pomodoro Timer Styles
 */

/* Tool Header Styles */
.tool-header-card {
    background-color: #4caf50;
    color: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tool-icon-container {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-icon-container svg {
    width: 40px;
    height: 40px;
}

.tool-header-card .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-header-card .tool-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pomodoro-timer-tool {
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pomodoro-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .pomodoro-container {
        grid-template-columns: 1fr;
    }
    
    .tool-header-card .page-title {
        font-size: 2rem;
    }
    
    .tool-header-card .tool-description {
        font-size: 1rem;
    }
    
    .pomodoro-settings, 
    .pomodoro-display, 
    .pomodoro-stats {
        margin-bottom: 20px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        padding: 15px;
    }
}

/* Settings Panel */
.pomodoro-settings {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.settings-group {
    margin-bottom: 20px;
}

.pomodoro-settings label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.pomodoro-settings input[type="number"] {
    width: 70px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 20px;
}

.dark-mode-toggle input {
    margin-right: 10px;
}

#save-settings {
    background-color: #4a7dff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    width: 100%;
}

#save-settings:hover {
    background-color: #3a6ae0;
}

/* Timer Display */
.pomodoro-display {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-status {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    align-items: center;
}

.timer-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.session-counter {
    font-size: 1rem;
    background-color: #f0f8ff;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.session-counter-label {
    margin-right: 5px;
    font-weight: 500;
}

#completed-sessions {
    font-weight: 700;
    color: #4a7dff;
}

.timer-display {
    margin: 20px 0;
    position: relative;
}

.timer-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 4px solid #4a7dff;
    z-index: 1;
}

.timer-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    z-index: -1;
    background: linear-gradient(45deg, #4a7dff, #6fa8dc);
    opacity: 0.2;
}

.timer-time {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #4a7dff, #6fa8dc);
    width: 0;
    transition: width 1s linear;
    border-radius: 5px;
}

.timer-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.timer-btn {
    min-width: 90px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 1rem;
    text-transform: uppercase;
}

#start-timer {
    background-color: #4caf50;
    color: white;
}

#start-timer:hover {
    background-color: #45a049;
}

#pause-timer {
    background-color: #ff9800;
    color: white;
}

#pause-timer:hover {
    background-color: #e68a00;
}

#reset-timer {
    background-color: #f44336;
    color: white;
}

#reset-timer:hover {
    background-color: #d32f2f;
}

.timer-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Stats Panel */
.pomodoro-stats {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.stats-container {
    margin-top: 20px;
}

.stat-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
}

.stat-label {
    font-weight: 500;
}

/* Modal Style */
.timer-alert-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
}

.timer-alert-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: slideIn 0.3s;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

#alert-title {
    margin-top: 0;
    color: #4a7dff;
    font-size: 1.5rem;
}

#alert-message {
    margin: 20px 0;
    font-size: 1.1rem;
    color: #555;
}

#alert-ok {
    background-color: #4a7dff;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

#alert-ok:hover {
    background-color: #3a6ae0;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Dark Mode */
.dark-mode {
    --bg-color: #222;
    --text-color: #f8f9fa;
    --card-bg: #333;
    --border-color: #444;
    --accent-color: #4a7dff;
    --secondary-bg: #2d2d2d;
    --input-bg: #444;
}

.dark-mode .pomodoro-settings,
.dark-mode .pomodoro-stats {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-mode .pomodoro-display {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-mode .timer-label {
    color: var(--text-color);
}

.dark-mode .timer-circle {
    background-color: var(--secondary-bg);
    border-color: var(--accent-color);
}

.dark-mode .timer-time {
    color: var(--text-color);
}

.dark-mode .timer-progress {
    background: linear-gradient(90deg, var(--accent-color), #5e89e6);
}

.dark-mode .stat-item {
    background-color: var(--secondary-bg);
    color: var(--text-color);
}

.dark-mode .session-counter {
    background-color: var(--secondary-bg);
    color: var(--text-color);
}

.dark-mode input[type="number"] {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.dark-mode .progress-container {
    background-color: var(--secondary-bg);
}

.dark-mode .timer-alert-content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.dark-mode #alert-title {
    color: var(--accent-color);
}

.dark-mode #alert-message {
    color: var(--text-color);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .tool-header-card {
        margin-top: 10px;
        padding: 25px 15px;
    }
    
    .tool-header-card .page-title {
        font-size: 1.8rem;
    }
    
    .tool-header-card .tool-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .tool-icon-container {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .tool-icon-container svg {
        width: 30px;
        height: 30px;
    }
    
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .timer-btn {
        width: 100%;
        margin: 0;
    }
    
    .timer-status {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .session-counter {
        width: 100%;
        text-align: center;
    }
    
    .pomodoro-settings h3,
    .pomodoro-stats h3 {
        font-size: 1.3rem;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .pomodoro-container {
        margin-top: 15px;
    }
    
    .timer-circle {
        width: 180px;
        height: 180px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .pomodoro-settings {
        padding: 15px;
    }
    
    .pomodoro-settings label {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .pomodoro-display {
        padding: 15px;
    }
    
    .timer-label {
        font-size: 1.3rem;
    }
    
    .pomodoro-stats {
        padding: 15px;
    }
    
    .stat-item {
        padding: 10px;
        font-size: 0.95rem;
    }
} 