/* Neon Theme - Modern Music Platform */
:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-purple: #9d00ff;
    --neon-green: #00ff88;
    --dark-bg: #0a0a0f;
    --card-bg: #1a1a2e;
    --hover-bg: #252540;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Neon Text Effect */
.neon-text {
    color: var(--neon-blue);
    text-shadow: 
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue);
    animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Navbar */
.neon-navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Cards */
.neon-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 0 20px rgba(0, 243, 255, 0.2),
        0 0 40px rgba(157, 0, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

.neon-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 30px rgba(0, 243, 255, 0.4),
        0 0 60px rgba(157, 0, 255, 0.2);
}

/* Buttons */
.neon-button {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.neon-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
}

/* Input Fields */
.neon-input {
    background: rgba(26, 26, 46, 0.8) !important;
    border: 2px solid rgba(0, 243, 255, 0.3) !important;
    color: white !important;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

.neon-input:focus {
    background: rgba(26, 26, 46, 0.9) !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5) !important;
    color: white !important;
}

.form-label {
    color: var(--neon-blue);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Links */
.neon-link {
    color: var(--neon-pink);
    text-decoration: none;
    transition: all 0.3s ease;
}

.neon-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #2a1a3e 100%);
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
}

/* Song List */
.song-list {
    max-height: 600px;
    overflow-y: auto;
}

.song-list::-webkit-scrollbar {
    width: 8px;
}

.song-list::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
}

.song-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 10px;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.song-item:hover {
    background: var(--hover-bg);
    border-color: var(--neon-blue);
    transform: translateX(5px);
}

.song-item.active {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(157, 0, 255, 0.2));
    border-color: var(--neon-blue);
}

.song-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.song-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.song-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
}

.song-artist {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.song-actions {
    display: flex;
    gap: 10px;
}

/* Player Card */
.player-card {
    position: sticky;
    top: 80px;
}

.current-song-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 5px;
}

.current-song-artist {
    color: var(--neon-pink);
    font-size: 0.9rem;
}

#audioPlayer {
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.8);
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.player-controls button {
    margin: 0 5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Queue List */
.queue-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 243, 255, 0.3);
}

.queue-section-title {
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.queue-list {
    max-height: 300px;
    overflow-y: auto;
}

.queue-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 8px;
    border-left: 3px solid var(--neon-blue);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.queue-item:hover {
    background: rgba(26, 26, 46, 0.9);
    transform: translateX(3px);
}

.queue-item.custom-queue {
    border-left-color: var(--neon-pink);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item-info {
    flex: 1;
}

.queue-item-title {
    font-weight: bold;
    color: white;
}

.queue-item-artist {
    color: var(--neon-blue);
    font-size: 0.85rem;
}

.queue-item-actions {
    display: flex;
    gap: 5px;
}

.btn-queue-action {
    background: rgba(0, 243, 255, 0.2);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-queue-action:hover {
    background: var(--neon-blue);
    color: white;
}

.btn-queue-action.btn-remove {
    border-color: #ff0055;
    color: #ff0055;
}

.btn-queue-action.btn-remove:hover {
    background: #ff0055;
    color: white;
}

/* Repeat Button Active State */
#repeatBtn.active {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

/* Player Controls */
.player-controls button {
    margin: 0 3px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: 1px solid;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.alert-danger {
    background: rgba(255, 0, 85, 0.1);
    border-color: #ff0055;
    color: #ff0055;
}

/* Tables */
.table-dark {
    background: rgba(26, 26, 46, 0.6);
    color: white;
}

.table-dark thead {
    background: rgba(0, 243, 255, 0.1);
    border-bottom: 2px solid var(--neon-blue);
}

.table-dark tbody tr {
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

.table-dark tbody tr:hover {
    background: rgba(0, 243, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .neon-card {
        padding: 15px;
    }
    
    .song-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .song-actions {
        width: 100%;
        justify-content: center;
    }
    
    .player-card {
        position: relative;
        top: 0;
        margin-top: 20px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}
