/* ==========================================================================
   Shortcut Sistem - Custom Enhancements
   Theme Harmony: JUARA DIGITAL Disdukcapil Bone Bolango
   ========================================================================== */

/* Topbar Navbar - Ultra Sleek & Perfectly Balanced */
.navbar-shortcut {
    background-color: #123B5D !important;
    background: #123B5D !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
    min-height: 66px;
    padding: 0.55rem 0 !important;
    z-index: 1030;
}

.navbar-shortcut .brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-shortcut .brand-title-main {
    font-size: 0.98rem;
    font-weight: 800;
    color: #FFFFFF !important;
    letter-spacing: 0.4px;
    line-height: 1.2;
    margin: 0;
}

.navbar-shortcut .brand-subtitle-main {
    font-size: 0.70rem;
    font-weight: 600;
    color: #7dd3fc !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0;
}

/* Nav Item Links - Strictly Single Line Inline-Flex */
.navbar-shortcut .nav-shortcut-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.42rem 0.85rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.22s ease !important;
    line-height: 1.2 !important;
}

.navbar-shortcut .nav-shortcut-link i {
    font-size: 1.05rem !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.navbar-shortcut .nav-shortcut-link:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.navbar-shortcut .nav-shortcut-link.active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.navbar-shortcut .nav-shortcut-link.active i {
    color: #F59E0B !important;
}

/* Right-end Search Button - Single Line Horizontal */
.btn-nav-search {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    height: 38px !important;
    padding: 0 18px !important;
    background-color: #F59E0B !important;
    background: #F59E0B !important;
    color: #FFFFFF !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.btn-nav-search:hover {
    background-color: #d97706 !important;
    background: #d97706 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45) !important;
}

.btn-nav-search i {
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

/* Responsive Tablet & Mobile Drawer */
@media (max-width: 991.98px) {
    .navbar-shortcut .navbar-collapse {
        background: #0d2840 !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 14px !important;
        padding: 1rem !important;
        margin-top: 0.75rem !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
    }
    
    .navbar-shortcut .nav-shortcut-link {
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 0.65rem 0.85rem !important;
    }

    .btn-nav-search {
        width: 100% !important;
        margin-top: 0.5rem !important;
        height: 42px !important;
    }
}

/* Dual Gateway Hero Cards */
.gateway-card {
    background: linear-gradient(145deg, rgba(16, 42, 77, 0.82) 0%, rgba(9, 25, 48, 0.92) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 32px -4px rgba(2, 6, 23, 0.5);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gateway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gateway-card.gateway-kependudukan:hover::before {
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 1;
}

.gateway-card.gateway-capil::before {
    background: linear-gradient(90deg, transparent, #F59E0B, transparent);
}

.gateway-card.gateway-capil:hover::before {
    opacity: 1;
}

.gateway-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px -4px rgba(2, 6, 23, 0.7), 0 0 28px rgba(14, 165, 233, 0.25);
}

.gateway-card.gateway-kependudukan:hover {
    border-color: rgba(56, 189, 248, 0.65);
}

.gateway-card.gateway-capil:hover {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 20px 44px -4px rgba(2, 6, 23, 0.7), 0 0 28px rgba(245, 158, 11, 0.25);
}

.gateway-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.gateway-card:hover .gateway-icon-box {
    transform: scale(1.08);
}

.gateway-icon-kependudukan {
    background: rgba(37, 99, 235, 0.22);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.gateway-icon-capil {
    background: rgba(37, 99, 235, 0.22);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.gateway-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-block;
}

.gateway-badge-kependudukan {
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.gateway-badge-capil {
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Service Card Enhancement */
.service-shortcut-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.35rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2563EB;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-shortcut-card.card-capil::before {
    background: #2563EB;
}

.service-shortcut-card.card-sptjm::before {
    background: #3B82F6;
}

.service-shortcut-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(18, 59, 93, 0.12);
    border-color: rgba(37, 99, 235, 0.35);
}

.service-shortcut-card:hover::before {
    opacity: 1;
}

.service-shortcut-card.card-capil:hover {
    border-color: rgba(37, 99, 235, 0.45);
}

.service-shortcut-card.card-sptjm:hover {
    border-color: rgba(59, 130, 246, 0.45);
}

/* Card Code Badge */
.badge-service-code {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.badge-code-kependudukan,
.badge-code-capil {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.badge-code-sptjm {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

/* Filter Navigation Bar */
.filter-nav-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.filter-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.filter-btn.active {
    background: #123B5D;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(18, 59, 93, 0.25);
}

.filter-btn.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.badge-count {
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #E2E8F0;
    color: #475569;
    font-weight: 700;
}

/* Search Box Sticky / Clean */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 1.15rem;
}

.search-input-wrapper input {
    padding-left: 48px;
    padding-right: 40px;
    height: 50px;
    border-radius: 12px;
    border: 1.5px solid #CBD5E1;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.clear-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    display: none;
    cursor: pointer;
}

.clear-search-btn:hover {
    color: #475569;
}

/* Section Header Bar */
.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #E2E8F0;
}

.section-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-header-title h4,
.section-header-title h5 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0F172A !important;
    margin: 0 !important;
}

.section-header-title small {
    font-size: 0.83rem !important;
    color: #64748B !important;
    display: block;
    margin-top: 2px;
}

.section-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

/* SPTJM Neat Card Cluster */
.sptjm-highlight-box {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1.5px solid #86EFAC;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Modal Styling */
.modal-content-custom {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.modal-header-custom {
    background: #123B5D;
    color: #FFFFFF;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.modal-header-custom .btn-close {
    filter: brightness(0) invert(1);
}

/* Quick Floating Back to Top */
.btn-floating-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #123B5D;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(18, 59, 93, 0.35);
    border: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.btn-floating-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-floating-top:hover {
    background: #F59E0B;
    color: #FFFFFF;
    transform: translateY(-3px);
}

