/* Stili per il componente PresentationTimer */

/* TV-Style Timer Panel - COMPATTO */
.tv-timer-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 30, 0.95));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  color: white;
  font-family: 'Segoe UI', system-ui, sans-serif;
  width: 100%;
  max-width: 350px;
  min-height: 68px;
  position: relative;
  overflow: hidden;
}

.timer-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 6px 12px;
    flex: 1;
}

.timer-controls-right {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 12px;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.time-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.time-value,
.elapsed-value {
    font-family: 'Digital-7 Mono', 'DS-Digital', 'Orbitron', 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}

.time-value.normal {
    color: #4caf50;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.time-value.warning {
    color: #ff9800;
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

.time-value.danger {
    color: #f44336;
    text-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
    animation: pulse 1s infinite;
}

.elapsed-value {
    color: #2196f3;
    text-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
}

.elapsed-value.overtime {
    color: #f44336;
    text-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
    animation: pulse 1s infinite;
}

.time-divider {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    font-family: 'Digital-7 Mono', 'DS-Digital', 'Orbitron', 'Courier New', 'Consolas', 'Monaco', monospace;
    width: 12px;
    text-align: center;
    display: inline-block;
}

.time-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
    margin-top: 1px;
}

/* Barra di progresso sul fondo che si estende su tutta la larghezza */
.timer-progress-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-bar-full {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
}

.progress-fill.normal {
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #ff9800, #ffb74d, #ffcc02);
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.6);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #f44336, #ef5350, #ff1744);
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.6);
    animation: pulse-glow 1s infinite;
}

.timer-btn {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 8px !important;
    height: 24px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
}

.timer-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Animazioni */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 12px rgba(244, 67, 54, 0.6);
    }
    50% { 
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.9);
    }
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .tv-timer-panel {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        min-height: auto;
    }

    .timer-controls-right {
        justify-content: center;
    }

    .timer-display {
        gap: 12px;
    }

    .time-value,
    .elapsed-value {
        font-size: 16px;
    }

    .time-divider {
        font-size: 20px;
    }
}
