@charset "UTF-8";
/* Modern Glassmorphism Audio Editor CSS */

/* ====== NỀN & BODY ====== */
body {
    background: linear-gradient(120deg, #f3f6ff 0%, #e3ebff 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #2a3554;
    letter-spacing: 0.01em;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    background: url('../img/bg-blurv.jpg') center/cover no-repeat;
    opacity: 0.13;           /* Độ mờ hình nền (0.1 - 0.3 là đẹp) */
    filter: blur(12px);      /* Độ blur, chỉnh cao/thấp tùy ý */
    pointer-events: none;    /* Không ảnh hưởng thao tác */
    transition: opacity 0.4s;
}
.selected-region {
    border: 2px solid #f25252 !important;
    box-shadow: 0 0 0 2px #ffd6d6;
}

/* ====== HEADER ====== */
header {
    background: rgba(72, 61, 139, 0.94) !important;
    box-shadow: 0 2px 14px #b7c5ec32;
    border-bottom: 1.5px solid #e9edfa;
	
}
header img { box-shadow: 0 3px 18px #b3aaff18; border-radius: 8px;}
header nav a { font-weight: 600; opacity: 0.94; transition: color .13s; text-decoration: blink;}
header nav a:hover { color: #f8b03d !important; text-decoration: blink;}

/* ====== TABS ====== */
.nav-tabs {
    background: rgba(255,255,255,0.75);
    border-radius: 13px 13px 0 0;
    padding: 0 10px;
    box-shadow: 0 4px 18px #d2e4fd28;
    border: none;
}
.nav-tabs .nav-link {
    font-size: 1.08rem;
    padding: 9px 26px;
    border-radius: 11px 11px 0 0 !important;
    background: none;
    border: none;
    color: #3e4a77;
    transition: background .16s, color .16s;
    margin-right: 2px;
    font-weight: 600;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-link:focus {
    background: linear-gradient(120deg, #eaf1ff 50%, #f5faff 100%);
    color: #7a3df0 !important;
    border: none;
    box-shadow: 0 3px 18px #c7ddff0d;
}

/* ====== FORM VÀ INPUT ====== */
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e9f5;
    font-size: 1.01rem;
    background: rgba(251,253,255,0.94);
    box-shadow: 0 2px 8px #c6d9fa12;
    transition: border-color .16s, box-shadow .16s;
}
.form-control:focus, .form-select:focus {
    border-color: #7a3df0;
    box-shadow: 0 0 6px #aab5e9;
}

/* ====== TRACKS VÀ TIMELINE ====== */
#timeline {
    position: relative;
    min-height: 300px;
    background: none;
}
.track-timeline {
    position: relative;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.85);
    border-radius: 16px;
    border: 1.5px solid #e2e9f5;
    min-height: 64px;
    padding: 14px 0 14px 18px;
    box-shadow: 0 4px 24px 0 #a2b0c80c, 0 1px 8px #0001;
    transition: box-shadow .2s, border-color .2s;
    backdrop-filter: blur(4.5px);
}
.track-timeline:hover {
    box-shadow: 0 8px 40px #90a0d81c, 0 2px 12px #b3a8f1;
    border-color: #c7d6fd;
}
.track-controls {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 500;
    color: #363956;
}
.track-controls b {
    color: #425cce;
    font-size: 1.1rem;
}
.track-waveform {
    min-width: 320px;
    min-height: 44px;
    height: 54px;
    cursor: pointer;
    background: linear-gradient(90deg, #f5faff 40%, #edf3ff 100%);
    border-radius: 9px;
    border: 1.5px solid #e4eaff;
    box-shadow: 0 1px 5px #d1e0fc21;
    margin-bottom: 5px;
    transition: border-color .15s;
}
.track-waveform:active, .track-waveform:focus {
    border-color: #7e88fa;
}
.track-muted {
    opacity: 0.43;
    background: #f0f1f7 !important;
    filter: grayscale(0.5) brightness(1.09);
}
.segment-selected, .wavesurfer-region {
    background: rgba(55, 165, 255, 0.13) !important;
    border: 2px dashed #37a5ff !important;
    transition: background .18s;
}
.wavesurfer-region[data-label]::after {
    content: attr(data-label);
    display: inline-block;
    position: absolute;
    top: -26px;
    left: 10px;
    background: #425cce;
    color: #fff;
    padding: 1px 10px;
    border-radius: 8px;
    font-size: 0.93em;
    opacity: 0.92;
    pointer-events: none;
}

/* ====== LIST, SIDEBAR ====== */
#sidebar, .list-group {
    background: rgba(249,251,255,0.99);
    border-radius: 15px;
    box-shadow: 0 2px 18px #dbeafe0a;
    border: 1.5px solid #eaf0fa;
    padding: 10px 6px 10px 10px;
}
.tracklist-track.active,
.list-group-item.active,
.list-group-item:focus {
    background: linear-gradient(90deg,#e9f0ff 80%,#e6ecfc 100%)!important;
    font-weight: 700;
    border-color: #b1c6fa;
    color: #251294;
}
.list-group-item {
    font-size: 1.01rem;
    border: none;
    border-bottom: 1px solid #e9eaf0;
    background: transparent;
    transition: background .14s;
    padding: 9px 16px 9px 9px;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover {
    background: #f2f6ff !important;
}
input[type="range"] {
    width: 104px;
    accent-color: #7a3df0;
    cursor: pointer;
}

/* ====== FILE & BUTTON ====== */
input[type="file"] {
    background: #f7fafd;
    border-radius: 8px;
    border: 1px solid #e4eafc;
    font-size: 0.97rem;
    padding: 3px 7px;
}
.btn {
    font-size: 0.97rem;
    border-radius: 11px !important;
    padding: 5px 15px !important;
    box-shadow: 0 1px 3px #cad9f80d;
    transition: background .15s, color .15s, box-shadow .17s;
}
.btn-primary { background: #7a3df0; border: none; }
.btn-primary:hover, .btn-primary:focus { background: #6549c7; }
.btn-outline-secondary { color: #333; border: 1.2px solid #b4bbd6; }
.btn-outline-secondary:hover { background: #f6f6f9; }
.btn-success { background: #43b78a; border: none; }
.btn-outline-success { color: #43b78a; border: 1.2px solid #b4eac8;}
.btn-outline-success:hover { background: #e8fbf4;}
.btn-outline-primary { color: #6a6cd5; border: 1.2px solid #b4bbf0;}
.btn-outline-primary:hover { background: #eaf0ff; }
.btn-danger, .btn-outline-danger { border: 1.2px solid #ffc2c2; background: #ffeded; color: #ca3d45;}
.btn-outline-danger:hover { background: #ffe2e2; }

.alert-info {
    background: linear-gradient(90deg, #eef3ff 80%, #f8faff 100%);
    color: #294078;
    border-radius: 10px;
    border: 1.2px solid #bedafd;
}

/* ====== STATUS, TOOLTIP ====== */
#exportStatus, #cutterExportStatus, #convertStatus {
    min-height: 28px;
    font-size: 1.08rem;
    font-weight: 500;
    margin-top: 8px;
}
#region-tooltip {
    position: fixed;
    z-index: 9999;
    background: #212333eb;
    color: #fff;
    padding: 4px 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    pointer-events: none;
    display: none;
    box-shadow: 0 4px 16px #4443;
    letter-spacing: 0.01em;
    font-weight: 500;
}

/* ====== FOOTER ====== */
.footer-main {
    box-shadow: 0 -2px 16px #b9cbe930;
    letter-spacing: 0.01em;
    background: rgba(255, 248, 220, 0.96);
	text-decoration: blink !important;
}
.footer-main a:hover {
    color: #7a3df0 !important;
    text-decoration: blink !important;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 991px) {
    .track-timeline {padding-left:8px;}
    .track-controls {gap: 5px; font-size: 0.97rem;}
    .track-waveform {min-width:180px;}
}
@media (max-width: 767px) {
    .footer-main {font-size: 0.94rem;}
    .track-controls { flex-direction: column; align-items: flex-start; gap: 5px; }
    .track-timeline {padding-left:2px;}
    .track-waveform {min-width:90px; height: 33px;}
    .tracklist-track, .list-group-item {padding: 8px 9px;}
    .container-fluid {padding-left: 3px !important; padding-right: 3px !important;}
    header {padding-left: 5px !important; padding-right: 5px !important;}
}

::-webkit-scrollbar {height: 8px;}
::-webkit-scrollbar-thumb {background: #dbe2f4;border-radius:7px;}
::-webkit-scrollbar-track {background: #f8faff;}
