/* Professional Music Platform CSS - Bootstrap Based */

/* Site width cap */
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1200px !important;
}

/* ===== TYPOGRAPHY & BASE ===== */
:root {
    --primary-color: #343a40;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --text-muted: #6c757d;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fafafa;
    font-size: 15px;
}

/* ===== NAVIGATION ===== */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.speedbar {
	padding: calc(var(--bs-gutter-x) * .5);	
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== SIDEBAR ===== */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid var(--border-color);
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.card-header h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-group-item {
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
}

.list-group-item:hover {
    background-color: var(--light-color);
}

.list-group-item i {
    width: 16px;
    text-align: center;
}

/* ===== TRACK CARDS ===== */
.track-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--border-color);
}

.track-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.track-card-small {
    transition: all 0.2s ease-in-out;
    border: 1px solid var(--border-color);
}

.track-card-small:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* ===== BUTTONS ===== */
.btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-circle.btn-sm {
    width: 36px;
    height: 36px;
}

.track-play-btn {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}

.track-play-btn i {
    font-size: 16px;
    line-height: 1;
}

.track-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.track-card-small .track-play-btn,
.track-card .track-play-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.track-card-small .track-play-btn:hover,
.track-card .track-play-btn:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

/* Played/paused visual states */
.js-item-played .track-play-btn {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== FORMS ===== */
.form-control {
    border-color: var(--border-color);
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25);
}

.input-group .btn {
    border-color: var(--border-color);
}

/* ===== FULLSTORY PAGE ===== */
.track-lyrics {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--dark-color);
}

.track-lyrics p {
    margin-bottom: 1rem;
}

.table-borderless td {
    padding: 0.5rem 0;
    border: none;
}

.table-borderless td:first-child {
    width: 120px;
    font-weight: 500;
}

/* ===== ALERT STYLES ===== */
.alert-light {
    background-color: var(--light-color);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* ===== UTILITIES ===== */
.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.text-decoration-none:hover {
    text-decoration: none !important;
}

/* ===== MUSIC PLAYER ===== */
.wplayer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    border-top: 2px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.audioplayer {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
}

.audioplayer audio {
    display: none;
}

.ap-desc {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 250px;
}

.ap-img {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.ap-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-info {
    flex: 1;
}

.ap-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.ap-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ap-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audioplayer-playpause a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.audioplayer-playpause a:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.ap-prev, .ap-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.ap-prev:hover, .ap-next:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.audioplayer-bar {
    position: relative;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    flex: 1;
    margin: 0 1rem;
}

.audioplayer-bar-loaded {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.audioplayer-bar-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    z-index: 10;
}

.ap-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.audioplayer-time-current:after {
    content: " / ";
    margin: 0 0.25rem;
}

.audioplayer-volume {
    color: var(--text-muted);
}

.audioplayer-volume-button a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.audioplayer-volume-button a:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .sidebar-sticky {
        position: static;
    }
    
    .ap-prev, .ap-next {
        display: none;
    }
    
    .ap-desc {
        min-width: 200px;
    }
    
    .audioplayer {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .audioplayer-bar {
        margin: 0 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .track-card .card-body {
        padding: 1rem;
    }
    
    .btn-circle {
        width: 40px;
        height: 40px;
    }
    
    .btn-circle.btn-sm {
        width: 32px;
        height: 32px;
    }
    
    .track-play-btn {
        font-size: 0.75rem;
    }
    
    .audioplayer {
        flex-wrap: wrap;
        padding: 0.5rem;
    }
    
    .audioplayer-bar {
        order: -1;
        flex: 1 1 100%;
        margin: 0 0 0.5rem 0;
    }
    
    .ap-time {
        min-width: 60px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding: 0 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .ap-desc {
        min-width: 150px;
    }
    
    .ap-img {
        width: 40px;
        height: 40px;
    }
    
    .ap-title {
        font-size: 0.8rem;
    }
    
    .ap-artist {
        font-size: 0.75rem;
    }
}

/* ===== ADDITIONAL BOOTSTRAP CUSTOMIZATIONS ===== */
.card-title {
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
}

.table {
    margin-bottom: 0;
}

.fw-bold {
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ===== SEARCH SUGGESTIONS ===== */
#searchsuggestions {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#searchsuggestions a {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

#searchsuggestions a:hover {
    background-color: var(--light-color);
    text-decoration: none;
}

/* ===== SCROLLBAR CUSTOMIZATION ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== CLEAN FOCUS STATES ===== */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .wplayer,
    .btn,
    .sidebar {
        display: none !important;
    }
    
    .container-fluid {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}