/* ========== TIMELAPSE CONTROLS ========== */
#timelapse-controls {
    display: none;
    margin-top: 15px;
}

.timelapse-control-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    justify-content: center;
}

.tl-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tl-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.tl-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.tl-slider-container {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#tl-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

#tl-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#tl-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
}

#tl-time-display {
    font-family: monospace;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 140px;
    text-align: center;
}

.tl-speed-btn {
    width: auto !important;
    padding: 0 20px !important;
    border-radius: 22px !important;
    font-weight: bold;
    font-size: 14px;
}

.tl-back-btn {
    width: auto !important;
    padding: 0 20px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    gap: 8px;
}

/* ========== DAILY VIDEO PLAYER ========== */
#daily-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 50;
}

#daily-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-player-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 60;
}

/* ========== ADMIN SETTINGS PANEL ========== */
#admin-settings-panel {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#admin-settings-panel h3 {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.settings-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.settings-group h4 {
    margin-bottom: 15px;
    color: #333;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
    color: #555;
}

.setting-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Number Input */
.number-input {
    width: 70px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.number-input:focus {
    border-color: #667eea;
    outline: none;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 600px) {
    .timelapse-control-bar {
        padding: 10px 15px;
        gap: 8px;
    }

    .tl-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .tl-slider-container {
        width: 100%;
        order: 10;
        margin-top: 10px;
    }

    #tl-time-display {
        font-size: 12px;
        min-width: 120px;
    }

    .video-player-controls {
        flex-direction: column;
        bottom: 10px;
    }
}
