:root {
    --primary: #FF9A8B;
    --secondary: #FF6A88;
    --bg: #FFF5F5;
    --text: #4A4A4A;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, #FFCCBB 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem 0;
    color: var(--text);
}

.app-container {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 340px;
}

header {
    margin-bottom: 0.5rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
}

.btn-mute {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.btn-mute:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
}

.btn-mute:active {
    transform: scale(0.95);
}

#mode-text {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

/* --- Pantallas (video + timer) --- */
.screen {
    margin: 0.5rem 0 1rem;
}

.screen.hidden {
    display: none !important;
}

.video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 0.75rem;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screen .timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    color: var(--secondary);
    line-height: 1.2;
}

.screen .timer-display .timer-value {
    font-variant-numeric: tabular-nums;
}

/* --- Fin de descanso --- */
.break-finished-content {
    margin-top: 0.5rem;
}

.break-finished-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 0 0 1rem;
}

.break-finished-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.break-finished-actions button {
    width: 100%;
    max-width: 240px;
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.break-finished-actions button:hover {
    transform: scale(1.03);
}

.break-finished-actions .btn-exit {
    background: transparent;
    color: var(--text);
    border: 2px solid #ddd;
}

.break-finished-actions .btn-exit:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* --- Controles --- */
.controls {
    margin: 0.5rem 0;
}

.controls button {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.2s;
}

.controls button:hover {
    transform: scale(1.05);
}

.controls button:active {
    transform: scale(0.98);
}

/* --- Toast --- */
.toast {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--text);
    color: #fff;
    border-radius: 12px;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Ajustes --- */
.settings {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-group input {
    width: 44px;
    padding: 6px 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 154, 139, 0.25);
}

.input-group--volume {
    width: 100%;
    justify-content: center;
}

.input-group--volume input[type="range"] {
    width: 100px;
    height: 6px;
    padding: 0;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    accent-color: var(--primary);
}

.input-group--volume input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.input-group--volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -6px;
}

.input-group--volume input[type="range"]::-moz-range-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.input-group--volume input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

