/* Custom Styles */
#lesson-calculator {
    font-family: Arial, sans-serif;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#lesson-calculator h3
{
    color: #6c35b7;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #6c35b7;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #6c35b7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #5c2da0;
}

#results {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    text-align: center;
}

#results p {
    margin: 5px 0;
    color: #6c35b7;
}

#bamsquad-options {
    max-width: 600px;
    width: 100%;
    margin: 20px auto 0;
}

#lesson-calculator h4 {
    color: #6c35b7;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

#bamsquad-options table {
    width: 100%;
    border-collapse: collapse;
}

#bamsquad-options th, #bamsquad-options td {
    border: 1px solid #6c35b7;
    padding: 8px;
    text-align: center;
}

#bamsquad-options th {
    background-color: #6c35b7;
}


/* Timer-specific styles only - no global resets */

.timer-container {
    background: #110A16;
    border-radius: 20px;
    padding: 40px 80px;
    box-shadow: 0 25px 50px rgba(17, 10, 22, 0.4);
    border: 3px solid #9B5BB6;
    text-align: center;
    max-width: 800px;
    width: 100%;
    display: inline-block;
}

.timer-title {
    color: #E74C3C;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.time-unit {
    background: #9B5BB6;
    border-radius: 15px;
    padding: 25px 30px;
    min-width: 140px;
    border: 2px solid #E74C3C;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(155, 91, 182, 0.3);
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}

.time-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.time-label {
    font-size: 0.9rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 500;
}

.timer-status {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.expired {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.expired .timer-title {
    color: #E74C3C;
    animation: urgentPulse 0.5s infinite;
}

.expired .time-number {
    color: #E74C3C;
}

@keyframes urgentPulse {
    0% { transform: scale(1); color: #E74C3C; }
    50% { transform: scale(1.05); color: #ffffff; }
    100% { transform: scale(1); color: #E74C3C; }
}

@media (max-width: 600px) {
    .timer-container {
        padding: 40px 20px;
    }
    
    .timer-title {
        font-size: 2rem;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 20px 15px;
    }
    
    .time-number {
        font-size: 2.5rem;
    }
}