/* ===================================
           CUSTOM STYLE (DROPDOWN & ADMIN)
           =================================== */

/* Dropdown Wrapper */
.user-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 150%;
    right: 0;
    width: 250px;
    background: var(--bg-color);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 10px 0;
    
    /* --- TAMBAHAN SCROLL --- */
    max-height: 400px;
    overflow-y: auto;
    /* ---------------------- */
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100; 
}

/* --- TAMBAHAN SCROLLBAR OTOMATIS (SUPPORT DARK & LIGHT MODE) --- */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    /* Menggunakan var(--text-color) agar warna mengikuti tema */
    background-color: var(--text-secondary); 
    border-radius: 10px;
    opacity: 0.3; /* Supaya tidak terlalu hitam/putih pekat */
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 5px;
}

.dropdown-header strong {
    display: block;
    color: var(--text-color);
    font-size: 13px;
}

.dropdown-header small {
    color: var(--text-secondary);
    font-size: 11px;
}

.dropdown-label {
    padding: 8px 16px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 700;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-color);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(125,125,125,0.1);
    color: var(--accent-color);
}

.dropdown-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.dropdown-item.text-danger {
    color: #ff4757;
}
.dropdown-item.text-danger:hover {
    background: rgba(255, 71, 87, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

/* ===================================
           ADMIN PANEL MODAL STYLE
           =================================== */
.modal-box-large {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.btn-close-modal {
    background: rgba(0,0,0,0.05);
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.2s;
}
.btn-close-modal:hover { background: var(--accent-color); color: #fff; }

/* Admin Table Style */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}
.admin-table th, .admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}
.admin-table th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
}
.admin-table tr:hover { background: rgba(125,125,125,0.05); }

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}
.badge-success { background: rgba(39, 171, 34, 0.2); color: #27ab22; }
.badge-warning { background: rgba(255, 165, 0, 0.2); color: orange; }
.badge-danger { background: rgba(255, 71, 87, 0.2); color: #ff4757; }

/* Loading Spinner inside Modal */
.spinner-container { text-align: center; padding: 40px; }

/* Form Style Admin inside Modal */
.modal-body-custom .form-group { margin-bottom: 12px; }
.modal-body-custom label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 12px; font-weight: 700; }

    .typing {
        font-size: 1.6rem;
        white-space: nowrap;
        overflow: hidden;
        border-right: 2px solid #e5e7eb;
        display: block;
        margin: 0 auto; /* INI KUNCINYA */
    }

    .hero {
        width: 26ch;
        animation: hero 7.5s steps(26) infinite;
    }

    @keyframes hero {
        0% { width: 0 }
        70% { width: 26ch }
        100% { width: 23ch }
    }

    /* ===== NOTIFICATION BADGE STYLES ===== */
    #notif-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff4444;
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.6);
        transition: all 0.3s ease;
    }

    #notif-badge.hidden {
        display: none;
    }

    #notification-bell.has-unread #notif-badge {
        animation: shake-badge 0.6s infinite;
    }

    @keyframes shake-badge {
        0%, 100% {
            transform: scale(1) rotate(0deg);
        }
        25% {
            transform: scale(1.1) rotate(-5deg);
        }
        50% {
            transform: scale(1.15) rotate(5deg);
        }
        75% {
            transform: scale(1.1) rotate(-3deg);
        }
    }

    #notification-bell {
        position: relative;
    }
    
    /* ===================================
    BACKGROUND DROPDOWN BANK
       =================================== */
    select#payment_methods_select option {
    background-color: var(--input-select) !important;
    color: var(--text-color) !important;
    }
    
    /* ===================================
   BACKGROUND DROPDOWN (TESTIMONI)
   =================================== */
    select option {
    background-color: var(--input-select) !important;
    color: var(--text-color) !important;
    }
    
    
    /* ===================================
   ANIMATION BIKIN WEB TANPA BATAS
   =================================== */    

.wave-text {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.wave-text span {
  display: inline-block;
  animation: wave 1.8s ease-in-out infinite;
}

.wave-text .space {
  animation: none;
  width: 0.4em;
}

@keyframes wave {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.6em); /* relatif ke font-size */
  }
}

/* delay bertahap = ombak */
.wave-text span:nth-child(1)  { animation-delay: 0s; }
.wave-text span:nth-child(2)  { animation-delay: 0.1s; }
.wave-text span:nth-child(3)  { animation-delay: 0.2s; }
.wave-text span:nth-child(4)  { animation-delay: 0.3s; }
.wave-text span:nth-child(5)  { animation-delay: 0.4s; }
.wave-text span:nth-child(7)  { animation-delay: 0.5s; }
.wave-text span:nth-child(8)  { animation-delay: 0.6s; }
.wave-text span:nth-child(9)  { animation-delay: 0.7s; }
.wave-text span:nth-child(11) { animation-delay: 0.8s; }
.wave-text span:nth-child(12) { animation-delay: 0.9s; }
.wave-text span:nth-child(13) { animation-delay: 1s; }
.wave-text span:nth-child(14) { animation-delay: 1.1s; }
.wave-text span:nth-child(15) { animation-delay: 1.2s; }
.wave-text span:nth-child(17) { animation-delay: 1.3s; }
.wave-text span:nth-child(18) { animation-delay: 1.4s; }
.wave-text span:nth-child(19) { animation-delay: 1.5s; }
.wave-text span:nth-child(20) { animation-delay: 1.6s; }
.wave-text span:nth-child(21) { animation-delay: 1.7s; }