/* Body styles only for standalone timer page (OBS browser source) */
body.standalone-timer {
    margin: 0;
    background: transparent;
    font-family: "Arial", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.timer-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

#timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    border-radius: 20px;
    border: 3px solid rgba(255, 132, 0, 0.5);
}

.timer-main {
    font-size: 120px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        5px 5px 12px rgba(0, 0, 0, 1),
        -2px -2px 0 rgba(0, 0, 0, 0.9),
        2px -2px 0 rgba(0, 0, 0, 0.9),
        -2px 2px 0 rgba(0, 0, 0, 0.9),
        2px 2px 0 rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 132, 0, 0.9),
        0 0 50px rgba(255, 132, 0, 0.6);
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
}

#timer-display.timer-ended .timer-main {
    color: #ff0000;
    animation: pulse 1s infinite;
}

#timer-display.timer-ended {
    color: #ff0000;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        text-shadow: 
            4px 4px 8px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 0, 0, 0.6);
    }
    50% {
        text-shadow: 
            4px 4px 8px rgba(0, 0, 0, 0.8),
            0 0 40px rgba(255, 0, 0, 1);
    }
}

/* Time Added Display */
.time-added {
    align-self: flex-end;
    font-size: 18px;
    color: #4CAF50;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
}

#time-added-value {
    color: #4CAF50;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 650px;
    margin-top: 0;
}

.stat-box {
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    border: 2px solid rgba(255, 132, 0, 0.3);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85px;
}

.stat-box:hover {
    border-color: rgba(255, 132, 0, 0.6);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 50px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
}

/* Notifications for time added */
#notifications-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.time-added-notification {
    background: linear-gradient(135deg, rgba(255, 132, 0, 0.95), rgba(255, 80, 0, 0.95));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.time-added-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Optional: Control buttons (für Testing/Admin) */
.controls {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.controls button {
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 132, 0, 0.8);
    color: white;
    transition: all 0.2s;
}

.controls button:hover {
    background: rgba(255, 132, 0, 1);
    transform: scale(1.05);
}

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