/* WP Pomodoro Everywhere - CSS */

:root {
    /* Light Theme Colors */
    --pomodoro-bg-light: #ffffff;
    --pomodoro-border-light: #000000;
    --pomodoro-text-light: #000000;
    
    /* Dark Theme Colors */
    --pomodoro-bg-dark: #000000;
    --pomodoro-border-dark: #888888;
    --pomodoro-text-dark: #cccccc;

    /* Timer Colors */
    --pomodoro-timer-work: #ff4444; /* Red */
    --pomodoro-timer-break: #4444ff; /* Blue */
    --pomodoro-close-red: #ff0000;
}

#wp-pomodoro-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: sans-serif;
    
    --bg: var(--pomodoro-bg-light);
    --border: var(--pomodoro-border-light);
    --text: var(--pomodoro-text-light);
    --timer: var(--pomodoro-timer-work);
}

#wp-pomodoro-container.theme-dark {
    --bg: var(--pomodoro-bg-dark);
    --border: var(--pomodoro-border-dark);
    --text: var(--pomodoro-text-dark);
}

#wp-pomodoro-container.is-break {
    --timer: var(--pomodoro-timer-break);
}

/* Rising Banner */
#wp-pomodoro-banner {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--timer); 
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#wp-pomodoro-banner.show-banner {
    opacity: 1;
    transform: translateY(0);
}

/* Collapsed State (Tomato Button) */
#wp-pomodoro-toggle-btn {
    font-size: 30px;
    cursor: pointer;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: none; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

#wp-pomodoro-container.is-collapsed #wp-pomodoro-toggle-btn {
    display: block;
}

#wp-pomodoro-container.is-collapsed #wp-pomodoro-ui {
    display: none;
}

/* Expanded State (Main UI) - Compact Layout */
#wp-pomodoro-ui {
    display: block; 
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 15px 20px; 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    min-width: 240px;
}

#wp-pomodoro-close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: var(--pomodoro-close-red);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

/* Compact Top Row */
.wp-pomodoro-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 5px;
}

#wp-pomodoro-status {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

#wp-pomodoro-time {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--timer);
    line-height: 1;
}

/* Compact Controls (2x2 Grid) */
.wp-pomodoro-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.wp-pomodoro-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wp-pomodoro-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.wp-pomodoro-control-group button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    width: 100%;
}

#wp-pomodoro-vol-level {
    margin-top: 4px;
}

/* Responsiveness */
@media (max-width: 600px) {
    #wp-pomodoro-container {
        bottom: 10px;
        right: 10px;
    }
    #wp-pomodoro-ui {
        padding: 12px 15px;
        min-width: 200px;
    }
    #wp-pomodoro-time {
        font-size: 1.8rem;
    }
}
