/* Standard Bootstrap 5.3 Corporate Navy & Slate Theme */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: #F8FAFC;
    color: #1E293B;
}

h1, .h1 { font-size: 1.85rem; }
h2, .h2 { font-size: 1.45rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.1rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.9rem; }

.hero-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    position: relative;
}

.hero-banner.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 55%, rgba(15, 23, 42, 0.35) 100%);
    z-index: 0;
}

.hero-banner > .container {
    position: relative;
    z-index: 1;
}

.login-card-dark {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(13, 110, 253, 0.18) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-card-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 6px 16px rgba(13, 110, 253, 0.25) !important;
}

.card-hover {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

/* Service Card dengan Dukungan Background Image */
.service-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.service-card.has-bg-img {
    color: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
}

.service-card.has-bg-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.90) 100%);
    z-index: 0;
}

.service-card > .card-body {
    position: relative;
    z-index: 1;
}

/* Footer Baru (Corporate Slate & Dark Navy - Tanpa Hijau) */
.site-footer {
    background-color: #0F172A;
    color: #CBD5E1;
    border-top: 3px solid #2563EB;
}

.site-footer a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: #FFFFFF;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background-color: #0F172A;
    transition: width 0.2s ease;
}

.admin-sidebar.collapsed {
    width: 66px;
}

.admin-sidebar.collapsed .menu-text,
.admin-sidebar.collapsed .sidebar-heading {
    display: none;
}

.admin-sidebar .nav-link {
    color: #94A3B8;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .nav-link:hover {
    background-color: #1E293B;
    color: #FFFFFF;
}

.admin-sidebar .nav-link.active {
    background-color: #0D6EFD;
    color: #FFFFFF;
}


/* Tombol Modern & Profesional */
.btn-modern-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.38);
    color: #FFFFFF !important;
}

.btn-modern-primary:active {
    transform: translateY(0);
}

.btn-modern-outline {
    background-color: #FFFFFF;
    color: #1E3A8A !important;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modern-outline:hover {
    background-color: #EFF6FF;
    border-color: #2563EB;
    color: #1D4ED8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.btn-modern-light {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-modern-light:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.btn-action-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-action-icon:hover {
    transform: translateY(-1px);
}


/* Fix Modal agar Solid Tidak Transparan & Selalu di Atas */
.modal {
    z-index: 1065 !important;
}
.modal-backdrop {
    z-index: 1060 !important;
    background-color: rgba(15, 23, 42, 0.55) !important;
}
.modal-content {
    background-color: #FFFFFF !important;
    opacity: 1 !important;
    color: #1E293B !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35) !important;
}
.modal-header {
    border-top-left-radius: 11px !important;
    border-top-right-radius: 11px !important;
}
.modal-body {
    background-color: #FFFFFF !important;
}
.modal-footer {
    background-color: #F8FAFC !important;
    border-bottom-left-radius: 11px !important;
    border-bottom-right-radius: 11px !important;
}

/* Tombol Ramping & Proporsional */
.btn-xs-compact {
    padding: 0.24rem 0.58rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    font-weight: 600;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
}


/* Sticky Admin Sidebar (Tidak ikut bergeser saat halaman di-scroll ke bawah) */
.admin-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    flex-shrink: 0;
    z-index: 1030;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Navbar Publik: Hilangkan warna box saat menu aktif diklik, fokus ke warna font saja */
.navbar-nav .nav-link {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #475569;
    transition: color 0.15s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #2563EB !important;
}

/* Perapian Popup Modal Edit agar kotak sejajar & presisi */
.modal-body .form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.3;
}
.modal-body .form-control-sm,
.modal-body .form-select-sm {
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
}
.modal-body textarea.form-control-sm {
    min-height: auto;
}
