/* ========================================
   MUSIC STREAMING - MAIN STYLES
   ======================================== */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================
   LAYOUT
   ======================================== */

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .nav-link {
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px 10px;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 18px;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding-bottom: 100px; /* Space for player bar */
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* ========================================
   GRADIENTS
   ======================================== */

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.song-card .card-img-top {
    border-radius: 12px 12px 0 0;
    aspect-ratio: 1;
    object-fit: cover;
}

.genre-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.genre-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.folder-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.folder-card:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

/* ========================================
   FORMS
   ======================================== */

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control-lg {
    padding: 15px;
    font-size: 1.1rem;
}

/* ========================================
   TABLES
   ======================================== */

.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    background-color: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 8px;
    border: none;
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background-color: #f8f9fa;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* ========================================
   NAVBAR (Mobile)
   ======================================== */

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

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.object-fit-cover {
    object-fit: cover;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}