body {
    margin: 0;
    font-family: 'Segoe UI', 'Ubuntu', 'Arial', sans-serif;
    background: #181c20 !important;
    color: #f5f6fa;
    min-height: 100vh;
    width: 100%;
}
/* Hide old sidebar */
.sidebar {
    display: none !important;
}

/* MacOS-style dockbar at bottom */
.dockbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 100;
    min-height: 64px;
    pointer-events: none;
}
.dock-inner {
    background: rgba(35, 39, 46, 0.95);
    backdrop-filter: blur(8px);
    border: 1.5px solid #222;
    pointer-events: auto;
    transition: box-shadow 0.2s;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox - hide by default */
    max-width: calc(100vw - 2rem); /* Leave space on sides */
    margin: 0 1rem; /* Add margin for spacing */
    border-radius: 16px; /* Ensure rounded corners */
}
.dock-inner::-webkit-scrollbar {
    height: 6px;
    opacity: 0; /* Hide by default */
    transition: opacity 0.3s ease;
}
.dock-inner::-webkit-scrollbar-thumb {
    background: #ff3b3f;
    border-radius: 4px;
}
.dock-inner::-webkit-scrollbar-track {
    background: #23272e;
    border-radius: 4px;
}
/* Show scrollbar on hover */
.dock-inner:hover {
    scrollbar-width: thin; /* Firefox - show on hover */
}
.dock-inner:hover::-webkit-scrollbar {
    opacity: 1; /* Show on hover for Webkit browsers */
}
.dock-link {
    color: #ff7b7f;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    padding: 6px 8px 2px 8px;
    min-width: 48px;
    min-height: 48px;
    text-decoration: none;
    position: relative;
    flex: 0 0 auto;
}
.dock-link svg {
    width: 28px;
    height: 28px;
    fill: #ff7b7f;
    stroke: none !important;
    margin-bottom: 2px;
    display: block;
    transition: fill 0.18s, transform 0.18s;
}
.dock-link.active,
.dock-link:hover {
    background: #3a2323;
    color: #fff;
    transform: scale(1.13);
}
.dock-link.active svg,
.dock-link:hover svg {
    fill: #ff3b3f;
    stroke: none !important;
    transform: scale(1.18);
}
.dock-link span {
    font-size: 11px;
    margin-top: 0;
    display: block;
}
.dock-link .dock-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
    display: block;
}
@media (max-width: 600px) {
    .dock-inner {
        border-radius: 12px;
        padding: 0.5rem 0.25rem;
        max-width: calc(100vw - 1rem); /* Less space on mobile */
        margin: 0 0.5rem; /* Smaller margin on mobile */
        overflow-x: auto;
    }
    .dock-link span {
        display: none;
    }
    .dock-link .dock-label {
        max-width: 48px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
}
.main-wrapper {
    padding-bottom: 90px; /* space for dockbar */
    background: #181c20 !important;
    min-height: 100vh !important;
    width: 100% !important;
    position: relative;
}
.sidebar {
    width: 90px;
    background: #23272e;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
}
.sidebar .logo {
    margin-bottom: 40px;
}
.sidebar .nav-link {
    background: none;
    border: none;
    color: #ff7b7f;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s, fill 0.3s, transform 0.2s;
    border-radius: 0.75rem;
}
.sidebar .nav-link svg {
    width: 28px;
    height: 28px;
    fill: #ff7b7f;
    margin-bottom: 4px;
    display: block;
    transition: background 0.3s, color 0.3s, fill 0.3s, transform 0.2s;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: #3a2323;
    color: #fff;
    transform: scale(1.08);
}
.sidebar .nav-link.active svg,
.sidebar .nav-link:hover svg {
    fill: #ff3b3f;
}
.main-content {
    background: #181c20 !important;
    min-height: calc(100vh - 90px) !important;
    width: 100% !important;
    overflow: auto;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.desktop-window {
    background: #23272e !important;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 1.5px 0 #ff3b3f inset;
    border: 2px solid #ff3b3f;
    min-height: calc(100vh - 90px) !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, border-radius 0.3s;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
}
.window-bar {
    height: 44px;
    background: linear-gradient(90deg, #1a1d20 80%, #2c2f34 100%);
    border-bottom: 2.5px solid #ff3b3f;
    display: flex;
    align-items: center;
    user-select: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-shadow: 0 2px 8px rgba(255,59,63,0.07);
}
.window-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
    border: 1.5px solid #181c20;
    box-shadow: 0 1px 3px rgba(0,0,0,0.13);
}
.window-content {
    background: #23272e !important;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.desktop-footer {
    background: #23272e;
    border-top: 1.5px solid #222;
    color: #bfc8d6;
    font-size: 14px;
    height: 48px;
    min-height: 48px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    position: relative;
    z-index: 10;
    font-family: 'Segoe UI', 'Ubuntu', 'Arial', sans-serif;
}
.desktop-window-footer {
    background: #23272e;
    border-top: 1.5px solid #222;
    color: #bfc8d6;
    font-size: 14px;
    height: 48px;
    min-height: 48px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    font-family: 'Segoe UI', 'Ubuntu', 'Arial', sans-serif;
    margin-top: -1.5px;
    z-index: 2;
}
.footer-datetime {
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    color: #ff7b7f;
    letter-spacing: 0.5px;
}
.user-desktop-info {
    min-width: 0;
    margin-left: auto;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
}
.user-desktop-info img {
    border: 2px solid #ff3b3f;
    background: #23272e;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.user-desktop-info span {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-desktop-info .account-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.user-desktop-info .account-btn:focus {
    outline: none;
}
.account-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 180px;
    background: #23272e;
    border: 1.5px solid #ff3b3f;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(255,59,63,0.13);
    z-index: 999;
    padding: 12px 16px 10px 16px;
    animation: fadeInAccount 0.18s;
}
@keyframes fadeInAccount {
    from { opacity: 0; transform: translateY(-8px);}
    to { opacity: 1; transform: translateY(0);}
}
.account-dropdown.open {
    display: block;
}
.account-dropdown .balance-box {
    background: #ff3b3f !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px;
    padding: 6px 12px;
    margin: 0 0 10px 0;
    font-size: 14px;
    gap: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.account-dropdown .balance-label,
.account-dropdown .balance-amount {
    color: #fff !important;
    font-size: 14px;
}
.account-dropdown .desktop-topup-btn {
    border: 1.5px solid #fff !important;
    color: #fff !important;
    background: #ff3b3f !important;
    font-size: 13px;
    padding: 3px 12px !important;
    margin-left: 0;
    min-width: 0;
    min-height: 0;
    margin-bottom: 8px;
    width: 100%;
    justify-content: center;
}
.account-dropdown .desktop-topup-btn:hover,
.account-dropdown .desktop-topup-btn:focus {
    background: #fff !important;
    color: #ff3b3f !important;
}
.account-dropdown .desktop-logout-btn {
    border: 1.5px solid #ff3b3f !important;
    color: #fff !important;
    background: #ff3b3f !important;
    font-size: 13px;
    padding: 3px 12px !important;
    margin-left: 0;
    min-width: 0;
    min-height: 0;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.account-dropdown .desktop-logout-btn svg {
    margin-right: 6px;
    color: #fff !important;
    stroke: #fff !important;
}
.account-dropdown .desktop-logout-btn:hover,
.account-dropdown .desktop-logout-btn:focus {
    background: #181c20 !important;
    color: #ff3b3f !important;
}
.account-dropdown .desktop-logout-btn:hover svg,
.account-dropdown .desktop-logout-btn:focus svg {
    color: #ff3b3f !important;
    stroke: #ff3b3f !important;
}
.desktop-logout-btn {
    border: 1.5px solid #ff3b3f !important;
    color: #fff !important;
    background: #ff3b3f !important;
    margin-left: 0.5rem;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px rgba(255,59,63,0.10);
    display: flex;
    align-items: center;
}
.desktop-logout-btn svg {
    display: block;
    color: #fff !important;
    stroke: #fff !important;
    transition: color 0.18s, stroke 0.18s;
}
.desktop-logout-btn:hover,
.desktop-logout-btn:focus,
.desktop-logout-btn:active {
    background: #181c20 !important;
    color: #ff3b3f !important;
    box-shadow: 0 2px 8px rgba(255,59,63,0.13);
    border-color: #ff3b3f !important;
}
.desktop-logout-btn:hover svg,
.desktop-logout-btn:focus svg,
.desktop-logout-btn:active svg {
    color: #ff3b3f !important;
    stroke: #ff3b3f !important;
}
.balance-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 0;
    margin-right: 1rem;
    font-size: 15px;
    gap: 0.25rem;
    display: flex;
    align-items: center;
}
.balance-label {
    color: #fff !important;
}
.balance-amount {
    font-size: 15px;
    color: #fff !important;
    letter-spacing: 0.5px;
}
.desktop-topup-btn {
    border: 1.5px solid #ff3b3f !important;
    color: #fff !important;
    background: #ff3b3f !important;
    margin-left: 0.25rem;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    font-size: 13px;
    display: flex;
    align-items: center;
}
.desktop-topup-btn:hover, .desktop-topup-btn:focus {
    background: #fff !important;
    color: #ff3b3f !important;
    box-shadow: 0 2px 8px rgba(255,59,63,0.13);
}
.desktop-topup-btn svg {
    display: block;
}
/* Custom select for package-select */
#package-select.form-select {
    background-color: #23272e;
    color: #fff;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 0.6rem 2.2rem 0.6rem 1rem;
    font-size: 1rem;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font-family: inherit;
    margin-bottom: 1rem;
    position: relative;
}

#package-select.form-select:focus {
    border-color: #ff3b3f;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.15);
    background-color: #23272e;
    color: #fff;
}

#package-select.form-select option {
    background: #23272e;
    color: #fff;
}

/* Custom arrow for select */
#package-select.form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg width='16' height='16' fill='red' xmlns='http://www.w3.org/2000/svg'><path d='M4 6l4 4 4-4' stroke='%23dc3545' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5em;
}
@media (max-width: 600px) {
    .sidebar {
        width: 56px;
        padding: 8px 0;
    }
    .sidebar .logo {
        margin-bottom: 20px;
    }
    .sidebar .nav-link span {
        display: none;
    }
    .main-content {
        padding: 0 !important;
        min-height: 100vh;
        width: 100vw;
    }
    .desktop-window {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .window-content {
        padding: 0.25rem !important;
    }
    .desktop-footer {
        font-size: 12px;
        padding-left: 8px;
        padding-right: 8px;
        height: 40px;
        min-height: 40px;
    }
    .desktop-window-footer {
        font-size: 12px;
        padding-left: 8px;
        padding-right: 8px;
        height: 40px;
        min-height: 40px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .footer-datetime {
        font-size: 12px;
    }
    .user-desktop-info {
        gap: 0.1rem;
    }
    .user-desktop-info span {
        font-size: 13px;
    }
    .user-desktop-info img {
        width: 20px !important;
        height: 20px !important;
    }
    .user-desktop-info .account-btn {
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        cursor: pointer;
    }
    .user-desktop-info span,
    .balance-box,
    .desktop-topup-btn,
    .desktop-logout-btn {
        display: none !important;
    }
    .account-dropdown {
        min-width: 160px;
        padding: 10px 10px 8px 10px;
    }
    .balance-box {
        font-size: 12px;
        padding: 2px 4px 2px 4px;
        margin-right: 0.25rem;
    }
    .balance-amount {
        font-size: 12px;
    }
    .desktop-topup-btn span {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .balance-box {
        font-size: 13px;
        padding: 3px 6px 3px 6px;
        margin-right: 0.5rem;
    }
    .balance-amount {
        font-size: 13px;
    }
    .desktop-topup-btn {
        font-size: 12px;
        padding: 2px 6px !important;
    }
}
@media (max-width: 768px) {
    .desktop-window {
        border-radius: 8px;
        padding: 0;
        max-width: 100vw;
    }
    .window-content {
        padding: 0.5rem !important;
    }
    .dock-inner {
        max-width: calc(100vw - 1.5rem);
        margin: 0 0.75rem;
        border-radius: 14px;
    }
}
@media (min-width: 1200px) {
    .dock-inner {
        max-width: 800px; /* Max width on large screens */
        margin: 0 auto; /* Center it */
    }
}

/* Override focus styles for dock links */
.dock-link:focus,
.dock-link:focus-visible,
.dock-link:active,
.dock-link:visited {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove Bootstrap default focus styles */
a.dock-link:focus,
a.dock-link:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure no focus styles on any state */
.dockbar a:focus,
.dockbar a:focus-visible,
.dockbar a:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove stroke from dock SVGs for cleaner look */
.dock-link svg {
    stroke: none !important;
}

.dock-link svg path,
.dock-link svg rect,
.dock-link svg circle,
.dock-link svg line,
.dock-link svg polyline {
    stroke: none !important;
}