/* Import Essential Modules */
@import url('modules/reset.css');
@import url('modules/layout.css');
@import url('modules/buttons.css');
@import url('modules/forms.css');
@import url('modules/navbar.css');
@import url('modules/modals.css');
@import url('modules/login.css');
@import url('modules/profile.css');
@import url('modules/tracks.css');
@import url('modules/dashboard.css');
@import url('modules/contributors.css');
@import url('modules/landing.css');
@import url('modules/player.css');
@import url('modules/backup.css');




.navbar {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 
                0 1px 0 rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s ease;
}

.logo-nav:hover {
    transform: translateX(2px);
}

.logo-geometric-small {
    width: 28px;
    height: 28px;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-nav:hover .logo-geometric-small {
    transform: scale(1.05) rotate(5deg);
}

.logo-geometric-small::before,
.logo-geometric-small::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    transition: all 0.3s ease;
}

.logo-geometric-small::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 18px solid #ffffff;
    filter: drop-shadow(0 2px 4px rgba(147, 51, 234, 0.3));
}

.logo-geometric-small::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid #ffffff;
    filter: drop-shadow(0 2px 4px rgba(147, 51, 234, 0.3));
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 500;
    font-style: normal;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-nav:hover .logo {
    background: linear-gradient(135deg, #ffffff 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 400;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    position: relative;
    display: inline-block;
}

.nav-link.deactivating {
    color: rgba(255, 255, 255, 0.65);
}

.nav-link.deactivating::after {
    width: 0 !important;
    opacity: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9333EA 0%, #A78BFA 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
    opacity: 0.6;
}

.nav-link.active {
    color: #ffffff;
    border-bottom-color: transparent;
    transform: translateY(0);
}

.nav-link.active::after {
    width: 100%;
    opacity: 1;
    background: linear-gradient(90deg, #9333EA 0%, #A78BFA 100%);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

/* Animation for when link becomes active */
@keyframes navLinkActivate {
    0% {
        color: rgba(255, 255, 255, 0.65);
        transform: translateY(0);
    }
    50% {
        color: rgba(255, 255, 255, 0.9);
        transform: translateY(-1px);
    }
    100% {
        color: #ffffff;
        transform: translateY(0);
    }
}

.nav-link.activating {
    animation: navLinkActivate 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animation for underline when switching between links */
@keyframes underlineSlide {
    0% {
        width: 0;
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        width: 100%;
        opacity: 1;
        transform: scaleX(1);
    }
}

.nav-link.activating::after {
    animation: underlineSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-link.active::after {
    transform: scaleX(1);
    width: 100%;
    opacity: 1;
}

.user-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 400;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-name:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-logout {
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #A78BFA;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.1);
}

.btn-logout i {
    font-size: 13px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(167, 139, 250, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.btn-logout:hover::before {
    left: 100%;
}

.btn-logout:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.25) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-color: rgba(167, 139, 250, 0.5);
    color: #C4B5FD;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.25),
                0 0 0 4px rgba(167, 139, 250, 0.1);
}

.btn-logout:hover i {
    transform: translateX(2px);
}

.btn-login {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(167, 139, 250, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    overflow: visible;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
}

.track-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.track-card-separator {
    border-bottom: none;
}

.track-card-focused {
    background: rgba(147, 51, 234, 0.12) !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.2) !important;
}

.track-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
}

.track-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.track-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(167, 139, 250, 0.1);
}

.track-card::before {
    display: none;
}

.track-main-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.track-play-button {
    flex-shrink: 0;
}

.btn-play-track-list {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    padding: 0;
    opacity: 1;
}

.btn-play-track-list:hover {
    color: #A78BFA;
    background: rgba(255, 255, 255, 0.1);
}

.track-info-section {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.track-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.track-card h3 {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.4;
}

.track-right-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
    overflow: visible;
}

@media (max-width: 768px) {
    .track-card-content {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px 12px;
        gap: 10px;
        position: relative;
    }
    
    .track-main-info {
        flex: 1;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }
    
    .track-play-button {
        flex-shrink: 0;
    }
    
    .btn-play-track-list {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(147, 51, 234, 0.15);
        border: 1px solid rgba(167, 139, 250, 0.3);
        color: #A78BFA;
        font-size: 16px;
    }
    
    .btn-play-track-list:hover {
        background: rgba(147, 51, 234, 0.25);
        border-color: rgba(167, 139, 250, 0.5);
        color: #C4B5FD;
    }
    
    .track-info-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-width: 0;
    }
    
    .track-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .track-title {
        font-size: 13px;
        font-weight: 500;
        margin: 0;
        flex: 1;
        line-height: 1.3;
        min-width: 0;
    }
    
    .track-right-section {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-left: 0;
        gap: 8px;
    }
    
    .track-meta-info {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .track-meta-info .track-badge.track-mood {
        display: none;
    }
    
    .track-contributors {
        margin: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .track-actions {
        position: static;
        display: flex;
        gap: 6px;
        flex-shrink: 0;
        order: 2;
    }
    
    .track-badge {
        font-size: 9px;
        padding: 2px 6px;
        white-space: nowrap;
    }
    
    .track-badge i {
        display: none;
    }
    
    .contributors-list {
        gap: 5px;
        display: flex;
        align-items: center;
        order: 1;
    }
    
    .contributor-avatar {
        width: 36px;
        height: 36px;
        border-width: 1.5px;
    }
    
    .contributor-more {
        width: 36px;
        height: 36px;
        font-size: 11px;
        border-width: 1.5px;
    }
    
    .btn-edit-track {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: 1px solid rgba(167, 139, 250, 0.3);
        background: transparent;
        color: #A78BFA;
        font-size: 12px;
    }
    
    .btn-edit-track:hover {
        background: rgba(147, 51, 234, 0.15);
        border-color: rgba(167, 139, 250, 0.5);
        color: #C4B5FD;
    }
}

.track-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.track-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    transition: all 0.3s ease;
}

.track-badge:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.track-badge i {
    font-size: 10px;
    opacity: 0.9;
}

.track-badge.track-genre {
    border-color: rgba(167, 139, 250, 0.4);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    color: #A78BFA;
}

.track-badge.track-genre:hover {
    border-color: rgba(167, 139, 250, 0.6);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.25) 0%, rgba(167, 139, 250, 0.2) 100%);
    color: #C4B5FD;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.3);
}

.track-badge.track-mood {
    border-color: rgba(167, 139, 250, 0.4);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    color: #A78BFA;
}

.track-badge.track-mood:hover {
    border-color: rgba(167, 139, 250, 0.6);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.25) 0%, rgba(167, 139, 250, 0.2) 100%);
    color: #C4B5FD;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.3);
}
