/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Header and Footer */
.header, .footer {
    background-color: var(--header-footer-color);
    height: var(--header-footer-height);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    padding: 0 20px;
}

.footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.header h1, .footer span {
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* User Menu */
.user-menu .dropdown-toggle {
    color: white;
    border: none;
    background: transparent;
    font-size: 1.5rem;
}

.user-menu .dropdown-menu {
    background-color: var(--header-footer-color);
    border: none;
}

.user-menu .dropdown-item {
    color: white;
}

.user-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Africa Unite Scrolling Text */
.africa-unite-text {
    position: fixed;
    top: calc(var(--header-footer-height) + 20px);
    left: 0;
    width: 100%;
    height: 320px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.africa-unite-text span {
    position: absolute;
    white-space: nowrap;
    font-size: 250px;
    font-weight: bold;
    color: #0099ff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: scrollText 30s linear infinite;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
}

@keyframes scrollText {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 5;
    margin-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Modal Fix */
.modal-backdrop {
    display: none !important;
}

.modal {
    z-index: 2000;
    position: fixed;
}

/* Login/Register Forms */
.login-container, .register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-footer-height) * 2);
    padding: 20px;
}

.login-box, .register-box {
    background: rgba(0, 153, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-box h2, .register-box h2 {
    color: white;
}

/* Calendar Styles */
.calendar-container {
    padding: 20px 0;
}

.date-navigation {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.current-date {
    font-weight: bold;
    color: white;
}

.date-picker-btn {
    margin-top: 10px;
}

/* Alarm Clock */
.alarm-section {
    margin-bottom: 30px;
}

.current-time-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

#current-time {
    font-weight: bold;
}

.alarms-list {
    max-height: 300px;
    overflow-y: auto;
}

.alarm-item {
    transition: all 0.3s;
}

.alarm-item:hover {
    background-color: rgba(0, 153, 255, 0.1);
}

/* Hourly Tasks */
.hourly-tasks {
    max-height: 500px;
    overflow-y: auto;
}

.hour-row {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hour-label {
    font-weight: bold;
}

.task-description {
    padding: 5px 10px;
}

.no-task {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.task-actions {
    display: none;
}

.hour-row:hover .task-actions {
    display: block;
}

/* ====================== */
/* MUSIC PLAYER STYLES */
/* ====================== */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--header-footer-color);
    padding: 10px 20px;
    z-index: 100;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.control-btn i {
    font-size: 1.2em;
}

/* Track Selector */
.track-selector {
    flex: 1;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 0 10px;
    transition: all 0.2s;
}

.track-selector:hover {
    background: rgba(255, 255, 255, 0.3);
}

.track-selector option {
    background-color: #4682B4;
}

/* Volume Control */
.volume-control {
    width: 100px;
    -webkit-appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    outline: none;
    transition: all 0.2s;
}

.volume-control:hover {
    background: rgba(255, 255, 255, 0.7);
}

.volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: gold;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-control::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Time Displays */
.current-time, .duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    min-width: 40px;
    text-align: center;
    display: inline-block;
    font-family: monospace;
}

/* REPEAT BUTTON STATES */
.repeat-btn {
    transition: all 0.3s ease;
}

.repeat-btn.repeat-off {
    color: white;
}

.repeat-btn.repeat-all {
    color: gold;
}

.repeat-btn.repeat-one {
    color: gold;
}

.repeat-indicator {
    position: absolute;
    font-size: 0.5em;
    font-weight: bold;
    background: gold;
    color: black;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: -2px;
    right: -2px;
    line-height: 1;
}

/* SHUFFLE BUTTON STATES */
.shuffle-btn {
    transition: all 0.3s ease;
}

.shuffle-btn.shuffle-on {
    color: gold !important;
}

.shuffle-btn.shuffle-on:hover {
    color: #ffd700 !important;
}

/* Active State Effects */
.repeat-btn.repeat-all:hover,
.repeat-btn.repeat-one:hover,
.shuffle-btn.shuffle-on:hover {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    transform: scale(1.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .africa-unite-text span {
        font-size: 120px;
    }
    
    .player-controls {
        gap: 10px;
    }
    
    .track-selector {
        max-width: 150px;
    }
    
    .repeat-indicator {
        width: 14px;
        height: 14px;
        font-size: 0.4em;
    }
}

@media (max-width: 576px) {
    .player-controls {
        gap: 8px;
        padding: 10px 0;
    }
    
    .track-selector {
        order: 1;
        max-width: 100%;
        margin: 10px 0;
    }
    
    .volume-control {
        width: 80px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .repeat-indicator {
        width: 12px;
        height: 12px;
        font-size: 0.4em;
        bottom: -1px;
        right: -1px;
    }
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) translateZ(20px);
    transition: all 0.3s ease;
    border: 3px solid #0099ff;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
}

.modal-header {
    background: linear-gradient(to right, #0099ff, #0066cc);
    color: white;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: none;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.btn-close {
    filter: invert(1);
}