* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    gap: 1rem;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
}

.timer-display {
    margin-bottom: 2rem;
}

.phase-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.phase-indicator.work {
    background: #e74c3c;
    color: white;
}

.phase-indicator.shortBreak {
    background: #f39c12;
    color: white;
}

.phase-indicator.longBreak {
    background: #27ae60;
    color: white;
}

.time-display {
    font-size: 8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.session-info {
    display: flex;
    justify-content: space-around;
    font-size: 1rem;
    color: #7f8c8d;
}

.controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-info {
    background: #1abc9c;
    color: white;
}

.config-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.config-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Estilos para el toggle de configuración */
.config-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    margin-bottom: 1rem;
}

.config-toggle:hover {
    color: #3498db;
}

.config-content {
    transition: all 0.3s ease;
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.config-item label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-icon {
    cursor: help;
    font-size: 0.9rem;
    color: #3498db;
    transition: color 0.2s ease;
    position: relative;
}

.info-icon:hover {
    color: #2980b9;
}

.info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: pre-line;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: left;
    line-height: 1.4;
}

.info-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
    z-index: 1001;
}

.config-item input {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.config-item input:focus {
    outline: none;
    border-color: #3498db;
}

.slack-config {
    grid-column: 1 / -1;
}

.slack-config small {
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.status-section {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 10px;
}

.status-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#statusDisplay {
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.status.success {
    background: #d5f4e6;
    color: #27ae60;
}

.status.error {
    background: #fadbd8;
    color: #e74c3c;
}

.status.warning {
    background: #fdeaa7;
    color: #f39c12;
}

.status.info {
    background: #d6eaf8;
    color: #3498db;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .time-display {
        font-size: 6rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
}