* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg,
        #05038d 0%,
        #1e40af 25%,
        #3b82f6 50%,
        #60a5fa 75%,
        #93c5fd 100%);
    font-family: 'Sarabun', sans-serif;
}

.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #05038d, #1e40af);
    color: #fff;

    display: flex;             
    flex-direction: column;     
    height: 100vh;              
}

.sidebar h5 {
    font-weight: 600;
}

.sidebar .nav-link {
    color: #cbd5f5;
    padding: 12px 14px;
    border-radius: 10px;
    transition: .2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.sidebar-menu {
    flex-grow: 1;   
}

.sidebar-footer {
    background: rgba(0,0,0,0.15);
}

.collapse-horizontal {
    transition: width .25s ease;
}

.main-content {
    flex: 1;
    background: #f8fafc;
    padding: 28px 32px;
    overflow-x: hidden;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h3 {
    margin: 0;
    font-weight: 600;
}

.back-sign,
.page-header h3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 90%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.dropdown-toggle::after {
    display: none;
}

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none;
    }
}
.queue-card {
    transition: opacity .3s ease, transform .3s ease;
}

.queue-card.fade-out {
    opacity: 0;
    transform: translateX(20px);
}
.status-block [aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.status-block .fa-chevron-down {
    transition: transform .2s ease;
}

.summary_card_home:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}
.main-content {
    height: 100vh;
    overflow-y: auto;
}
#btn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: none;
}