/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --navy: #0D1B2A;
    --navy-light: #1e293b;
    --red: #E63946;
    --red-dark: #c1121f;
    --white: #fff;
    --slate: #94a3b8;
    --slate-dark: #475569;
    --slate-darker: #64748b;
    --border-light: rgba(255,255,255,0.06);
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --sidebar-transition: 0.3s ease;
}

/* =============================================
   BASE
   ============================================= */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
a { color: #10b981; }
a:hover { color: #059669; }
.scrolling-wrapper { overflow-x: auto; }
.table-responsive { position: relative; }

/* =============================================
   LOADING MODAL
   ============================================= */
.bd-example-modal-lg .modal-dialog {
    display: table;
    position: relative;
    margin: 0 auto;
    top: calc(50% - 20px);
}
.bd-example-modal-lg .modal-dialog .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* =============================================
   ADMINLTE OVERRIDES - Accent Danger (Red)
   ============================================= */
.accent-danger .btn-link,
.accent-danger a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(.page-link):not(.btn),
.accent-danger .nav-tabs .nav-link { color: #E63946; }

.accent-danger .btn-link:hover,
.accent-danger a:not(.dropdown-item):not(.btn-app):not(.nav-link):not(.brand-link):not(.page-link):not(.btn):hover,
.accent-danger .nav-tabs .nav-link:hover { color: #c1121f; }

/* Primary - Red */
.btn-primary {
    color: #fff;
    background-color: #E63946;
    border-color: #E63946;
    box-shadow: none;
}
.btn-primary:hover {
    color: #fff;
    background-color: #c1121f;
    border-color: #c1121f;
}
.btn-primary:focus, .btn-primary.focus {
    color: #fff;
    background-color: #c1121f;
    border-color: #c1121f;
    box-shadow: 0 0 0 0 rgba(230,57,70,0.5);
}
.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: #f5a3a9;
    border-color: #f5a3a9;
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #a10f1a;
    border-color: #a10f1a;
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 rgba(230,57,70,0.5);
}

/* Outline Primary */
.btn-outline-primary {
    color: #E63946;
    border-color: #E63946;
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: #E63946;
    border-color: #E63946;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
    box-shadow: 0 0 0 0 rgba(230,57,70,0.5);
}
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
    color: #E63946;
    background-color: transparent;
}
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: #E63946;
    border-color: #E63946;
}
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 rgba(230,57,70,0.5);
}

/* Utility Classes */
.bg-primary {
    background: linear-gradient(135deg, #E63946, #c1121f) !important;
    background-color: #E63946 !important;
}
.bg-gradient-primary { background: linear-gradient(135deg, #E63946, #c1121f) !important; }
.border-primary { border-color: #E63946 !important; }
.text-primary { color: #E63946 !important; }
.badge-primary { background-color: #E63946 !important; }

.alert-primary {
    background-color: #fde8ea;
    border-color: #fbc4c8;
    color: #7a0d14;
}
.alert-primary .alert-link { color: #a10f1a; }

/* Card Primary */
.card-primary:not(.card-outline) > .card-header { background-color: #E63946; }
.card-primary:not(.card-outline) > .card-header,
.card-primary:not(.card-outline) > .card-header a { color: #fff; }
.card-primary:not(.card-outline) > .card-header a.active { color: #1f2d3d; }
.card-primary.card-outline { border-top: 3px solid #E63946; }
.card-primary.card-outline-tabs > .card-header a.active { border-top: 3px solid #E63946; }
.card-primary:not(.card-outline) > .card-header .btn-tool { color: rgba(255,255,255,0.8); }
.card-primary:not(.card-outline) > .card-header .btn-tool:hover { color: #fff; }

/* Navs */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link { background-color: #E63946 !important; }
.nav-pills .nav-link:not(.active):hover { color: #E63946; }

.btn-link { color: #E63946; }
.btn-link:hover { color: #c1121f; }

.nav-tabs .nav-link.active {
    color: #E63946 !important;
    border-color: #E63946 !important;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #E63946;
    border-color: #E63946;
}
.page-link { color: #E63946; }
.page-link:hover { color: #c1121f; }

/* Table */
.table .thead-primary th {
    background-color: #E63946;
    border-color: #E63946;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #E63946;
    border-color: #E63946;
}
.dropdown-item.active,
.dropdown-item:active { background-color: #E63946; }

/* Success Buttons */
.btn-outline-success {
    border-color: #E63946;
    color: #E63946;
}
.btn-outline-success:hover {
    background-color: #E63946;
    border-color: #E63946;
    color: #fff;
}
.btn-success {
    background-color: #E63946;
    border-color: #E63946;
}
.btn-success:hover {
    background-color: #c1121f;
    border-color: #c1121f;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-img {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-section-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.login-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}
.brand-wrapper { padding-top: 7px; padding-bottom: 8px; }
.login-wrapper { max-width: 100%; padding-top: 24px; padding-bottom: 24px; }

@media (max-width: 576px) {
    .login-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }
}

/* Login Form */
.input-wrapper { position: relative; }
.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    z-index: 2;
    transition: color 0.2s;
}
.input-wrapper .form-control-lg {
    padding-left: 42px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #f1f5f9;
    background: rgba(255,255,255,0.06);
    transition: all 0.25s ease;
}
.input-wrapper .form-control-lg:focus {
    border-color: #E63946;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 4px rgba(230,57,70,0.15);
}
.input-wrapper .form-control-lg:focus ~ .input-icon { color: #E63946; }
.input-wrapper .form-control-lg.is-invalid {
    border-color: #ef4444;
    background: rgba(255,255,255,0.08);
}
.input-wrapper .form-control-lg::placeholder {
    color: #64748b;
    font-size: 13px;
}

#submitbutton {
    background: linear-gradient(135deg, #E63946, #c1121f);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    padding: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
#submitbutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230,57,70,0.35);
}
#submitbutton:active { transform: translateY(0); }

.auth-link {
    color: #E63946;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-link:hover {
    color: #c1121f;
    text-decoration: underline;
}

/* =============================================
   CARD VARIATIONS (Dashboard Cards)
   ============================================= */
.card-block {
    height: 250px;
    background-color: #fff;
    border: none;
    background-position: center;
    background-size: cover;
    transition: all 0.2s ease-in-out !important;
    border-radius: 24px;
}
.card-1 { background: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%); }
.card-2 { background: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%); }
.card-3 { background: linear-gradient(90deg, #00DBDE 0%, #FC00FF 100%); }
.card-4 { background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%); }
.card-5 { background: linear-gradient(45deg, #85FFBD 0%, #FFFB7D 100%); }
.card-6 { background: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%); }
.card-7 { background: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%); }
.card-8 { background: linear-gradient(45deg, #FBDA61 0%, #FF5ACD 100%); }
.card-9 { background: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%); }
.card-10 { background: linear-gradient(225deg, #FF3CAC 0%, #784BA0 50%, #2B86C5 100%); }

/* =============================================
   WIDGET CARDS (pro, objek-image)
   ============================================= */
.pro {
    background: rgba(230,57,70,0.7);
    border-radius: 1rem;
    color: white;
    padding: 1rem;
    position: absolute;
    bottom: 1rem;
    width: 85%;
    left: 1rem;
}
.pro img {
    position: absolute;
    top: -10%;
    right: 10%;
}
.pro h4 {
    width: 40%;
    color: white;
    font-weight: 600;
}
.objek-image img {
    background-repeat: no-repeat;
    background-size: auto;
    width: 80px;
    height: 80px;
    border-radius: .5rem;
}

/* =============================================
   LANDING PAGE
   ============================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(230,57,70,0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(14,165,233,0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-2%, -2%); }
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; color: #fff; }
.hero-title span { color: #E63946; }
.hero-subtitle { font-size: 1.1rem; color: #94a3b8; line-height: 1.7; }
.hero-illustration { position: relative; z-index: 1; }
.hero-illustration img { max-width: 100%; animation: float 6s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.nav-modern {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 0; transition: all 0.3s ease;
}
.nav-modern.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.nav-modern .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500; font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.nav-modern .nav-link:hover { color: #E63946 !important; }
.section-title { font-size: 2.2rem; font-weight: 700; color: #0f172a; }
.section-tag { color: #E63946; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }

.feature-card {
    background: #fff; border-radius: 1rem; padding: 2rem;
    transition: all 0.3s ease; border: 1px solid #e2e8f0; height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #E63946;
}
.feature-icon {
    width: 60px; height: 60px; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    background: linear-gradient(135deg, #E63946, #c1121f);
    margin-bottom: 1.5rem;
}
.payment-card {
    border-radius: 1rem; padding: 2rem; text-align: center;
    background: #fff; border: 1px solid #e2e8f0;
    transition: all 0.3s ease; height: 100%;
}
.payment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.payment-card h3 { font-weight: 700; color: #0f172a; }
.payment-card ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.payment-card ul li { padding: 0.3rem 0; color: #475569; font-size: 0.9rem; }
.payment-card ul li i { margin-right: 0.5rem; }
.cek-nop-card { border-radius: 1rem; border: 1px solid #e2e8f0; max-width: 500px; margin: 0 auto; }
.cek-nop-card .card-body { padding: 2rem; }
.about-content { max-width: 800px; margin: 0 auto; }
#modalContent { max-height: 70vh; overflow-y: auto; }
.btn-modern { padding: 0.75rem 2rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; }

.footer-modern { background: #0f172a; color: #94a3b8; padding: 4rem 0 2rem; }
.footer-modern a { color: #94a3b8; transition: color 0.2s; }
.footer-modern a:hover { color: #E63946; text-decoration: none; }
.footer-modern h5 { color: #fff; font-weight: 600; margin-bottom: 1.5rem; }
.thank-section { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; padding: 5rem 0; text-align: center; }
.thank-section h3 { font-weight: 700; }
.thank-section p { color: #94a3b8; }

.brand-carousel .owl-item img { height: 40px; width: auto; opacity: 0.5; transition: opacity 0.3s; }
.brand-carousel .owl-item img:hover { opacity: 1; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }
}

/* =============================================
   PAYMENT PAGE
   ============================================= */
.payment-icon { font-size: 40px; }
.payment-radio { transform: scale(1.3); }

/* =============================================
   AUTH SUCCESS PAGE
   ============================================= */
.auth-success-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f3f4f6;
}
.success-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding: 2rem 3rem;
    max-width: 400px;
}
.success-icon { font-size: 50px; color: #E63946; }
.success-message { font-size: 1.5rem; margin-top: 1rem; color: #111827; }
.success-redirect { margin-top: 0.75rem; font-size: 0.9rem; color: #6b7280; }
.success-redirect a { color: #E63946; text-decoration: none; }
.success-redirect a:hover { color: #c1121f; text-decoration: underline; }

/* =============================================
   DOKUMEN INFORMASI (TTE)
   ============================================= */
.login-page,
.register-page { background: linear-gradient(135deg, #E63946, #c1121f); }
.login-card-body { background: rgba(255,255,255,0.04); }

/* =============================================
   DASHBOARD
   ============================================= */
#clockDisplay {
    font-size: 18pt;
    font-weight: bold;
    background: #1a73e8;
    color: #ffc107;
}
#runningText {
    background: #0f172a;
    color: #fff;
    padding: 5px;
}
.dash-font-text { font-size: 10pt; }
.dash-main-header { padding: 5px 10px; font-size: 14pt; }
.dash-main-footer { padding: 0 8px 0 5px; }

/* =============================================
   DATAGRID OVERLAY
   ============================================= */
.datagrid-loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.datagrid-loading-content { text-align: center; }

/* =============================================
   CETAK STTS MASAL
   ============================================= */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    background-color: #555;
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
}
#backToTopBtn:hover { background-color: #333; }
#cetakSttsMasal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    background-color: red;
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
}
#cetakSttsMasal:hover { background-color: #e26b6b; }

/* =============================================
   BILLING CREATE
   ============================================= */
.summary-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #E63946, #c1121f);
    border-radius: 20px;
    padding: 24px 28px;
    border: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(230,57,70,0.25);
}
.summary-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
}
.summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.summary-chip {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.summary-values .summary-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.summary-input {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    padding: 10px 14px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}
.summary-input:focus {
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.summary-card small { color: rgba(255,255,255,0.8) !important; }

.btn-gradient {
    background: linear-gradient(120deg, #E63946, #c1121f);
    border: none;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gradient:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(230,57,70,0.3);
}
.summary-generate-btn {
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
#btnGenerateFloating {
    border-radius: 999px;
    padding: 14px 28px;
    position: fixed;
    bottom: 32px;
    right: 30px;
    z-index: 2000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
#btnGenerateFloating:hover { transform: scale(1.05); }

@keyframes pulse {
    0% { box-shadow: 0 8px 20px rgba(230,57,70,0.25); }
    50% { box-shadow: 0 12px 30px rgba(230,57,70,0.4); }
    100% { box-shadow: 0 8px 20px rgba(230,57,70,0.25); }
}

/* =============================================
   LEFTSIDE MENU (Sidebar)
   ============================================= */
.leftside-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--navy);
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transition: width var(--sidebar-transition);
}

.leftside-menu .logo {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 70px;
    padding: 0 20px;
    background: var(--navy);
    border-bottom: 1px solid var(--border-light);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: width var(--sidebar-transition), padding var(--sidebar-transition);
}
.leftside-menu .logo .logo-lg { display: flex; align-items: center; gap: 8px; }
.leftside-menu .logo .logo-sm { display: none; }
.leftside-menu .logo img { height: 36px; width: auto; }
.leftside-menu .logo-dark { display: none; }
.button-sm-hover { display: none; }

/* User Avatar */
.leftbar-user {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
}
.leftbar-user img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 50%;
}
.leftbar-user .leftbar-user-name {
    font-weight: 700;
    color: var(--white);
    margin-top: 8px;
    font-size: 0.85rem;
    display: block;
}

/* Side Navigation */
.side-nav { padding-left: 0; list-style: none; margin: 0; }
.side-nav ul { list-style: none; padding-left: 0; }

.side-nav .side-nav-link {
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    font-size: 0.875rem;
    position: relative;
    transition: all 0.25s ease;
    text-decoration: none;
}
.side-nav .side-nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.04);
}
.side-nav .side-nav-link i {
    font-size: 1.15rem;
    width: 20px;
    text-align: center;
    line-height: 1;
}
.side-nav .side-nav-link span { vertical-align: middle; }
.side-nav .side-nav-link.text-white { color: var(--white) !important; }

.side-nav .menu-arrow {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.25s ease;
    opacity: 0.5;
}
.side-nav .menu-arrow:before { content: "\ea6e"; font-family: 'remixicon' !important; }
.side-nav .side-nav-item > a[aria-expanded=true] > .menu-arrow { transform: rotate(90deg); }
.side-nav .side-nav-item.menuitem-active > a:not(.collapsed) > .menu-arrow { transform: rotate(90deg); }

.side-nav .side-nav-title {
    padding: 16px 30px 6px;
    letter-spacing: 0.05em;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    pointer-events: none;
    cursor: default;
}
.side-nav .bg-danger { background: var(--red) !important; }
.side-nav .rounded-1 { border-radius: 8px !important; }
.side-nav .m-1 { margin: 2px 8px !important; }

/* Submenu */
.side-nav-second-level { padding-left: 0; }
.side-nav-second-level li { list-style: none; }
.side-nav-second-level li a {
    padding: 8px 30px 8px 58px;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.25s ease;
    font-size: 0.84rem;
    text-decoration: none;
}
.side-nav-second-level li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

/* Help Box */
.help-box { margin-top: 8px; }
.help-box h6 { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.help-box p { font-size: 0.78rem; color: var(--white); }

/* Container */
#leftside-menu-container {
    height: 100%;
    overflow-y: auto;
    padding-top: 70px;
    box-sizing: border-box;
}

/* Hide AdminLTE default sidebar */
.main-sidebar { display: none !important; }

/* Content Area */
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper {
    margin-left: var(--sidebar-width);
    padding-top: 24px;
    transition: margin-left var(--sidebar-transition);
}
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-transition);
}

/* Navbar */
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-transition);
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0px 0px 35px 0px rgba(154, 161, 171, 0.15);
    box-shadow: 0px 0px 35px 0px rgba(154, 161, 171, 0.15);
    min-height: 70px;
    padding: 0 12px;
}
.main-header.navbar .nav-link {
    color: #6c757d !important;
    transition: color 0.2s;
}
.main-header.navbar .nav-link:hover { color: #0f172a !important; }

/* =============================================
   SIDEBAR COLLAPSED
   ============================================= */
body.sidebar-collapsed .leftside-menu { width: var(--sidebar-collapsed); }

body.sidebar-collapsed .leftside-menu .logo {
    width: var(--sidebar-collapsed);
    padding: 0;
    justify-content: center;
}
body.sidebar-collapsed .leftside-menu .logo .logo-lg { display: none; }
body.sidebar-collapsed .leftside-menu .logo .logo-sm { display: flex; }

body.sidebar-collapsed .side-nav .side-nav-link {
    padding: 12px 0;
    justify-content: center;
    gap: 0;
}
body.sidebar-collapsed .side-nav .side-nav-link i {
    font-size: 1.3rem;
    width: auto;
}

body.sidebar-collapsed .side-nav .side-nav-link .menu-arrow,
body.sidebar-collapsed .side-nav .side-nav-title,
body.sidebar-collapsed .leftbar-user .leftbar-user-name,
body.sidebar-collapsed .leftbar-user small,
body.sidebar-collapsed .help-box {
    display: none !important;
}

body.sidebar-collapsed .side-nav .side-nav-item { position: relative; }
body.sidebar-collapsed .side-nav .side-nav-link span { display: none; }

/* Tooltip on hover */
body.sidebar-collapsed .side-nav .side-nav-item:hover > .side-nav-link span {
    display: block;
    position: absolute;
    left: var(--sidebar-collapsed);
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 10px 16px;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 0 6px 6px 0;
    z-index: 1001;
    box-shadow: 3px 0 12px rgba(0,0,0,0.3);
    border-left: 3px solid var(--red);
    pointer-events: none;
    line-height: 1;
}

body.sidebar-collapsed .leftbar-user { padding: 12px 0; }
body.sidebar-collapsed .leftbar-user img { width: 36px; height: 36px; }

body.sidebar-collapsed .side-nav-second-level { display: none !important; }

body.sidebar-collapsed:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper,
body.sidebar-collapsed:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer,
body.sidebar-collapsed:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
    margin-left: var(--sidebar-collapsed);
}

/* =============================================
   LANDING PAGE (Legacy - from welcome.css)
   ============================================= */
.layout-fixed .main-sidebar {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
