/* Timer de Atividades - CSS Moderno */

/* Container principal */
.timer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Card principal do timer */
.timer-card {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
}

.timer-card .card-body {
    padding: 3rem 2rem;
}

/* Configuração de tempo */
.time-config {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.time-config h4 {
    color: white;
    font-weight: 300;
}

.time-config .input-group-text {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 10px 0 0 10px;
}

.time-config .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    border-radius: 0;
    padding: 0.8rem;
}

.time-config .form-control:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
    border: none;
}

.time-config .input-group-text:last-child {
    border-radius: 0 10px 10px 0;
}

/* Display do timer */
.timer-display {
    padding: 2rem 0;
}

.time-numbers {
    font-family: 'Courier New', monospace;
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.time-numbers.warning {
    color: #ffc107;
    animation: pulse-warning 1s infinite;
}

.time-numbers.danger {
    color: #dc3545;
    animation: pulse-danger 0.5s infinite;
}

.time-label {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Animações de alerta */
@keyframes pulse-warning {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes pulse-danger {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Barra de progresso */
#progressContainer {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

#progressBar {
    border-radius: 10px;
    transition: all 0.3s ease;
}

#progressBar.warning {
    background-color: #ffc107 !important;
}

#progressBar.danger {
    background-color: #dc3545 !important;
}

/* Botões de controle */
.timer-controls {
    margin: 2rem 0;
}

.timer-controls .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.timer-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.timer-controls .btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.timer-controls .btn-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
}

.timer-controls .btn-info {
    background: linear-gradient(45deg, #17a2b8, #007bff);
}

.timer-controls .btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.timer-controls .btn-dark {
    background: linear-gradient(45deg, #343a40, #495057);
}

/* Presets de tempo */
.quick-presets {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.quick-presets h6 {
    color: white;
    font-weight: 300;
    margin-bottom: 1rem;
}

.preset-buttons .btn {
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.preset-buttons .btn:hover {
    background: white;
    color: #667eea;
    transform: scale(1.05);
}

/* Card de instruções */
.instructions-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.instructions-card .card-title {
    font-weight: 600;
}

.instructions-card li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

/* Modo tela cheia */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fullscreen-mode .timer-card {
    width: 90vw;
    max-width: none;
    height: auto;
    max-height: 90vh;
    margin: 0;
}

.fullscreen-mode .time-numbers {
    font-size: 8rem;
}

.fullscreen-mode .time-label {
    font-size: 2rem;
}

.fullscreen-mode .timer-controls .btn {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .timer-container {
        padding: 10px;
    }
    
    .timer-card .card-body {
        padding: 2rem 1rem;
    }
    
    .time-numbers {
        font-size: 3.5rem;
    }
    
    .timer-controls .btn {
        padding: 0.6rem 1.5rem;
        margin: 0.2rem;
        font-size: 0.9rem;
    }
    
    .fullscreen-mode .time-numbers {
        font-size: 5rem;
    }
    
    .fullscreen-mode .time-label {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .time-numbers {
        font-size: 2.5rem;
    }
    
    .timer-controls .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .time-config .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .preset-buttons .btn {
        width: 48%;
        margin: 0.25rem 1%;
    }
    
    .fullscreen-mode .time-numbers {
        font-size: 3.5rem;
    }
}

/* Estados especiais do timer */
.timer-paused .timer-card {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.timer-finished .timer-card {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    animation: timer-finished 1s ease-in-out;
}

@keyframes timer-finished {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Efeitos visuais */
.card-shadow-hover {
    transition: all 0.3s ease;
}

.card-shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Botão de tela cheia em destaque */
#fullscreenBtn {
    position: relative;
    overflow: hidden;
}

#fullscreenBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#fullscreenBtn:hover::before {
    left: 100%;
}