/* Split Layout with Glassmorphism for Buku Tamu KPP Madya Pekanbaru */

/* DJP Color Scheme */
:root {
    --djp-blue: #0056b3;      /* Official DJP Blue */
    --djp-yellow: #ffd700;    /* Official DJP Yellow */
    --djp-light-yellow: #fff9c4;
    --djp-light-blue: #e6f2ff;
    --djp-dark-blue: #003d82;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--djp-blue) 0%, var(--djp-dark-blue) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Split Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.split-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 7px;
    background: linear-gradient(180deg, transparent, var(--djp-yellow), transparent);
    opacity: 0.7;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* Left Hero Section */
.hero-section {
    flex: 1;
    background: linear-gradient(135deg, var(--djp-blue) 0%, var(--djp-dark-blue) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 500px;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* DJP Logo */
.logo-container {
    margin-bottom: 2rem;
}

.djplogo {
    height: 120px;
    max-width: 100%;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    position: relative;
}

.title-line-1 {
    display: block;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.3rem;
}

.title-line-1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    right: -15px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateY(-50%);
}

.title-line-2 {
    display: block;
    font-size: 4.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    position: relative;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.title-line-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--djp-yellow), transparent);
    opacity: 0.6;
    transform: translateY(-50%);
}

.title-line-2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--djp-yellow);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.title-line-3 {
    display: block;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.title-line-3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    right: -15px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateY(-50%);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.feature-item svg {
    color: var(--djp-yellow);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Right Form Section */
.form-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px var(--glass-shadow);
    max-width: 500px;
    width: 100%;
}

/* Form Container */
.form-container {
    width: 100%;
}

/* Form Elements - Enhanced for Better Readability */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.1rem; /* Increased from 0.95rem */
    line-height: 1.4;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.15rem; /* Increased from 1rem */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.form-control:focus {
    border-color: var(--djp-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
    outline: none;
    background: white;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #198754;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--djp-blue) 0%, var(--djp-dark-blue) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--djp-dark-blue) 0%, #002b5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
    color: white;
}

.btn-primary svg {
    color: var(--djp-yellow);
}

/* Form Validation */
.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.5rem;
}

.was-validated .form-control:valid {
    border-color: #198754;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Success/Error Messages */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(209, 237, 255, 0.9);
    color: #0c5460;
    border-left: 4px solid #198754;
}

.alert-danger {
    background: rgba(255, 230, 230, 0.9);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Creative Footer */
.footer {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 86, 179, 0.1);
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--djp-blue) 0%, var(--djp-yellow) 50%, var(--djp-blue) 100%);
    opacity: 0.8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    color: var(--djp-blue);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright svg {
    color: var(--djp-yellow);
    opacity: 0.8;
}

.footer-subtitle {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.footer-actions {
    display: flex;
    align-items: center;
}

.footer-admin-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.footer-admin-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left 0.6s;
}

.footer-admin-link:hover::before {
    left: 100%;
}

.footer-admin-link:hover {
    color: var(--djp-blue);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-color: var(--djp-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.footer-admin-link svg {
    color: var(--djp-yellow);
    transition: all 0.3s ease;
}

.footer-admin-link:hover svg {
    color: var(--djp-blue);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
        min-height: auto;
    }

    .split-layout::before {
        display: none;
    }

    .hero-section {
        padding: 3rem 2rem;
        min-height: 50vh;
    }

    .form-section {
        padding: 3rem 2rem;
        min-height: 50vh;
    }

    .title-line-1 {
        font-size: 2.0rem;
    }

    .title-line-2 {
        font-size: 3.6rem;
    }

    .title-line-3 {
        font-size: 2.0rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .form-section {
        padding: 2rem 1rem;
    }

    .glassmorphism {
        padding: 2rem;
        border-radius: 16px;
    }

    .title-line-1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .title-line-1::before {
        left: -10px;
        right: -10px;
    }

    .title-line-2 {
        font-size: 3.2rem;
        letter-spacing: 1px;
    }

    .title-line-2::before {
        left: -15px;
        right: -15px;
    }

    .title-line-2::after {
        width: 50px;
        height: 2px;
    }

    .title-line-3 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .title-line-3::before {
        left: -10px;
        right: -10px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-item {
        font-size: 1rem;
    }

    .djplogo {
        height: 80px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-copyright {
        justify-content: center;
    }

    .footer-info {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .glassmorphism {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .title-line-1 {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
    }

    .title-line-1::before {
        left: -8px;
        right: -8px;
    }

    .title-line-2 {
        font-size: 2.6rem;
        letter-spacing: 0.5px;
    }

    .title-line-2::before {
        left: -12px;
        right: -12px;
        height: 1px;
    }

    .title-line-2::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }

    .title-line-3 {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
    }

    .title-line-3::before {
        left: -8px;
        right: -8px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .djplogo {
        height: 60px;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-admin-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .footer-subtitle {
        font-size: 0.75rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Loading spinner for the submit button */
.loading-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.d-grid {
    display: grid;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Focus States */
*:focus {
    outline: none;
}

/* Disabled Form Fields */
.form-disabled {
    opacity: 0.6;
    background-color: #f8f9fa;
    color: #6c757d;
    pointer-events: none;
    cursor: not-allowed;
}

.form-disabled:hover {
    border-color: #ced4da;
}

.form-disabled:focus {
    border-color: #ced4da;
    box-shadow: none;
}

/* ===== NIK VALIDATION BUTTON STYLING ===== */

.btn-circle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--djp-blue) 0%, var(--djp-dark-blue) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.25) !important;
    cursor: pointer !important;
}

#nikValidateBtn {
    margin: 0 !important;
    min-width: unset !important;
}

#nikValidateBtn:hover {
    /* No hover animations - steady appearance */
}

#nikValidateBtn:active {
    /* No click animation - completely static appearance */
}

#nikValidateBtn:disabled {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

#nikValidateBtn svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    transition: transform 0.3s ease !important;
    color: currentColor !important;
}

#nikValidateBtn:hover svg {
    /* No animation - icon stays static */
}

#nikValidateBtn .loading-spinner {
    animation: spin 1s linear infinite !important;
}

/* Ensure proper spacing and responsiveness */
@media (max-width: 768px) {
    #nikValidateBtn {
        width: 34px;
        height: 34px;
    }

    #nikValidateBtn .fas {
        font-size: 12px;
    }

    #pic_nik, #npwp, #staff_search {
        padding-right: 50px !important;
    }
}

/* ===== NPWP TAXPAYER SEARCH ANIMATIONS ===== */

/* Animated Dropdown Container */
#npwp_search_dropdown {
    animation: dropdownSlideIn 0.3s ease-out;
    transform-origin: top center;
}

#npwp_search_dropdown.dropdown-fade-out {
    animation: dropdownFadeOut 0.25s ease-in forwards;
}

/* Loading State Animation */
#npwp_search_results .dropdown-item .fa-spinner {
    animation: spin 1.2s linear infinite;
}

/* Dropdown Item Animations */
#npwp_search_results .taxpayer-result {
    animation: itemFadeIn 0.4s ease-out both;
}

/* Staggered animation for multiple results */
#npwp_search_results .taxpayer-result:nth-child(1) { animation-delay: 0.05s; }
#npwp_search_results .taxpayer-result:nth-child(2) { animation-delay: 0.10s; }
#npwp_search_results .taxpayer-result:nth-child(3) { animation-delay: 0.15s; }
#npwp_search_results .taxpayer-result:nth-child(4) { animation-delay: 0.20s; }
#npwp_search_results .taxpayer-result:nth-child(5) { animation-delay: 0.25s; }
#npwp_search_results .taxpayer-result:nth-child(6) { animation-delay: 0.30s; }
#npwp_search_results .taxpayer-result:nth-child(7) { animation-delay: 0.35s; }
#npwp_search_results .taxpayer-result:nth-child(8) { animation-delay: 0.40s; }

/* Enhanced Hover Effects */
#npwp_search_results .taxpayer-result {
    transform: translateX(0);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

#npwp_search_results .taxpayer-result::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.4s;
    z-index: 0;
}

#npwp_search_results .taxpayer-result:hover::before {
    left: 100%;
}

#npwp_search_results .taxpayer-result:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 86, 179, 0.02) 100%);
    transform: translateX(4px);
    border-left-color: var(--djp-yellow);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
    z-index: 1;
}

#npwp_search_results .taxpayer-result strong {
    color: #333;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

#npwp_search_results .taxpayer-result small {
    color: #6c757d;
    z-index: 1;
    position: relative;
}

#npwp_search_results .taxpayer-result .fa-chevron-right {
    color: var(--djp-blue);
    opacity: 0.7;
    transition: all 0.25s ease;
    z-index: 1;
    position: relative;
}

#npwp_search_results .taxpayer-result:hover .fa-chevron-right {
    color: var(--djp-yellow);
    opacity: 1;
    transform: translateX(2px);
}

/* Create New Button Animation */
.dropdown-divider {
    margin: 0.5rem 0;
    animation: dividerFadeIn 0.5s ease-out 0.4s both;
}

#npwp_search_dropdown .dropdown-item.text-primary {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(0, 86, 179, 0.2);
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    animation: createButtonSlideIn 0.4s ease-out 0.5s both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#npwp_search_dropdown .dropdown-item.text-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 86, 179, 0.1), transparent);
    transition: left 0.5s;
}

#npwp_search_dropdown .dropdown-item.text-primary:hover::before {
    left: 100%;
}

#npwp_search_dropdown .dropdown-item.text-primary:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-color: var(--djp-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.15);
}

#npwp_search_dropdown .dropdown-item.text-primary .fas {
    transition: transform 0.3s ease;
}

#npwp_search_dropdown .dropdown-item.text-primary:hover .fas {
    transform: scale(1.1);
}

/* ===== KEYFRAME ANIMATIONS ===== */

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dropdownFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dividerFadeIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes createButtonSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-animation {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== CUSTOM SCROLLBAR STYLING ===== */

/* Custom scrollbar for staff search dropdown */
#staff_search_dropdown::-webkit-scrollbar {
    width: 8px;
}

#staff_search_dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 4px 0;
}

#staff_search_dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--djp-yellow) 0%, var(--djp-blue) 100%);
    border-radius: 4px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#staff_search_dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--djp-yellow), var(--djp-dark-blue));
    transform: scaleX(1.1);
}

#staff_search_dropdown::-webkit-scrollbar-thumb:active {
    background: var(--djp-dark-blue);
    box-shadow: inset 0 0 8px rgba(0, 86, 179, 0.4);
}

/* Firefox scrollbar styling for staff dropdown */
#staff_search_dropdown {
    scrollbar-width: thin;
    scrollbar-color: var(--djp-yellow) transparent;
}

/* Custom scrollbar for NPWP search dropdown */
#npwp_search_dropdown::-webkit-scrollbar {
    width: 8px;
}

#npwp_search_dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 4px 0;
}

#npwp_search_dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--djp-yellow) 0%, var(--djp-blue) 100%);
    border-radius: 4px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#npwp_search_dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--djp-yellow), var(--djp-dark-blue));
    transform: scaleX(1.1);
}

#npwp_search_dropdown::-webkit-scrollbar-thumb:active {
    background: var(--djp-dark-blue);
    box-shadow: inset 0 0 8px rgba(0, 86, 179, 0.4);
}

/* Rounded corners for scrollbar ends */
#npwp_search_dropdown::-webkit-scrollbar-button {
    display: none;
}

/* Firefox scrollbar styling */
#npwp_search_dropdown {
    scrollbar-width: thin;
    scrollbar-color: var(--djp-yellow) transparent;
}

/* Alternative scrollbar styling for better browser support */
.scrollbar-custom {
    scrollbar-width: thin;
    scrollbar-color: var(--djp-yellow) rgba(255, 255, 255, 0.1);
}

.scrollbar-custom::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--djp-blue) 0%, var(--djp-dark-blue) 100%);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: var(--djp-dark-blue);
    transform: scaleX(1.1);
}

/* ===== SEMANTIC FIX: Override Bootstrap dropdown-item width for list items and buttons ===== */

/* Staff search dropdown styling - Enhanced for Better Readability */
#staff_search_dropdown li.dropdown-item,
#staff_search_dropdown button.dropdown-item {
    width: auto !important;  /* Override Bootstrap width:100% */
    margin: 0.25rem 0.5rem;  /* Add margins for better spacing */
    border-radius: 6px;      /* Rounded corners */
    font-size: 1.05rem;      /* Increased from 0.9rem for better readability */
    line-height: 1.4;
    padding: 0.75rem 1rem;   /* Increased padding for better touch targets */
}

#staff_search_dropdown .staff-result:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
    transform: translateX(4px);
    border-left-color: var(--djp-blue);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
}

#staff_search_dropdown .staff-result .fa-chevron-right {
    color: var(--djp-blue);
    opacity: 0.7;
    transition: all 0.25s ease;
}

#staff_search_dropdown .staff-result:hover .fa-chevron-right {
    color: var(--djp-yellow);
    opacity: 1;
    transform: translateX(2px);
}

#npwp_search_dropdown li.dropdown-item,
#npwp_search_dropdown button.dropdown-item {
    width: auto !important;  /* Override Bootstrap width:100% */
    margin: 0.25rem 0.5rem;  /* Add margins for better spacing */
    border-radius: 6px;      /* Rounded corners */
    font-size: 1.05rem;      /* Increased from 0.9rem for better readability */
    line-height: 1.4;
    padding: 0.75rem 1rem;   /* Increased padding for better touch targets */
}

#npwp_search_dropdown button.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

/* Original Text Button Styling - Reverted */
#npwp_search_dropdown .dropdown-item.text-primary {
    background: initial !important;
    border: none !important;
    border-radius: 0 !important;
    color: #0d6efd !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    padding: 0.375rem 1.5rem !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

#npwp_search_dropdown .dropdown-item.text-primary .fas {
    font-size: inherit !important;
    margin: 0 0.5rem 0 0 !important;
}

#npwp_search_dropdown .dropdown-item.text-primary:hover {
    background: rgba(13, 110, 253, 0.1) !important;
    border-color: transparent !important;
    color: #0b5ed7 !important;
    transform: none !important;
    box-shadow: none !important;
}
