/* ============================================
   SIDEBAR - FULL CSS (FIXED RESPONSIVE)
   ============================================ */

/* Logo */
#myLogo {
    cursor: pointer !important;
    user-select: none !important;
    pointer-events: auto !important;
}

/* ============================================
   SIDEBAR OVERLAY - HANYA UNTUK MOBILE
   ============================================ */
#mySidebarOverlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
}

#mySidebarOverlay.active {
    display: block !important;
}

/* ============================================
   SIDEBAR KIRI - DESKTOP (sticky)
   ============================================ */
#mySidebar {
    width: 280px !important;
    min-width: 280px !important;
    position: sticky !important;
    top: 80px !important;
    height: fit-content !important;
    max-height: calc(100vh - 100px) !important;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #E8EAED !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
    left: 0 !important;
    transform: none !important;
}

/* ============================================
   SIDEBAR KIRI - MOBILE (fixed) - RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    #mySidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        min-width: 280px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 1000 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding-top: 60px !important;
        overflow-y: auto !important;
        background: #FFFFFF !important;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2) !important;
        border-radius: 0 !important;
        border: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    #mySidebar.open {
        left: 0 !important;
    }
}

/* ============================================
   FORCE - PASTIKAN SIDEBAR TERTUTUP DI DESKTOP
   ============================================ */
@media (min-width: 993px) {
    #mySidebar {
        left: 0 !important;
        transform: none !important;
        position: sticky !important;
    }
    
    #mySidebar.open {
        left: 0 !important;
    }
    
    #mySidebarOverlay {
        display: none !important;
    }
    
    #mySidebarOverlay.active {
        display: none !important;
    }
}

/* ============================================
   PROFILE CARD
   ============================================ */
#mySidebar .profile-card {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 16px !important;
}

#mySidebar .profile-cover {
    height: 80px !important;
    background: linear-gradient(135deg, #FCD535, #F59E0B) !important;
}



#mySidebar .profile-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 4px solid #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 8px !important;
}



#mySidebar .profile-username {
    font-size: 13px !important;
    color: #6B7280 !important;
    margin: 0 0 4px !important;
}



#mySidebar .profile-stats {
    display: flex !important;
    justify-content: space-around !important;
    padding: 12px 0 !important;
    border-top: 1px solid #E8EAED !important;
    margin-top: 12px !important;
}

#mySidebar .profile-stats div {
    text-align: center !important;
}

#mySidebar .profile-stats .stat-number {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1E2329 !important;
}

#mySidebar .profile-stats .stat-label {
    font-size: 12px !important;
    color: #6B7280 !important;
}

/* ============================================
   WALLET CARD DI SIDEBAR
   ============================================ */
#mySidebar .wallet-card {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    border: 1px solid #E8EAED !important;
}

#mySidebar .wallet-card h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1E2329 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#mySidebar .wallet-card h4 i {
    color: #FCD535 !important;
}

#mySidebar .wallet-balance {
    background: linear-gradient(135deg, #FFF8E1, #FFF3C4) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

#mySidebar .wallet-balance .balance-label {
    display: block !important;
    font-size: 11px !important;
    color: #6B7280 !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#mySidebar .wallet-balance .balance-amount {
    display: block !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1E2329 !important;
}

/* ============================================
   WALLET SETTING DI SIDEBAR
   ============================================ */
#mySidebar .wallet-setting {
    margin-top: 8px !important;
}

#mySidebar .wallet-setting > label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1E2329 !important;
    margin-bottom: 6px !important;
}

/* Wallet Address Display */
#mySidebar .wallet-address-short {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #F5F6F8 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: #1E2329 !important;
}

#mySidebar .wallet-address-short span {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

#mySidebar .btn-edit-address {
    background: none !important;
    border: none !important;
    color: #FCD535 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
    font-size: 13px !important;
}

#mySidebar .btn-edit-address:hover {
    background: rgba(252, 213, 53, 0.2) !important;
}

/* Wallet Input Group */
#mySidebar .wallet-input-group {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

#mySidebar .wallet-input-group input {
    flex: 1 !important;
    min-width: 150px !important;
    padding: 8px 12px !important;
    border: 2px solid #E8EAED !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-family: 'Courier New', monospace !important;
    transition: border-color 0.2s !important;
    background: #FAFBFC !important;
    color: #1E2329 !important;
}

#mySidebar .wallet-input-group input:focus {
    outline: none !important;
    border-color: #FCD535 !important;
    background: #FFFFFF !important;
}

#mySidebar .wallet-input-group input::placeholder {
    color: #9CA3AF !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11px !important;
}

#mySidebar .btn-save-address {
    padding: 8px 16px !important;
    background: #FCD535 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #1E2329 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

#mySidebar .btn-save-address:hover {
    background: #E8B800 !important;
}

#mySidebar .btn-cancel-edit {
    padding: 8px 12px !important;
    background: #F5F6F8 !important;
    border: 2px solid #E8EAED !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

#mySidebar .btn-cancel-edit:hover {
    background: #E8EAED !important;
}

/* Wallet Hint */
#mySidebar .wallet-hint {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #6B7280 !important;
    margin-top: 8px !important;
    padding: 6px 10px !important;
    background: #FAFBFC !important;
    border-radius: 6px !important;
}

#mySidebar .wallet-hint i {
    font-size: 12px !important;
    color: #FCD535 !important;
}

#mySidebar #walletStatusText.success {
    color: #10B981 !important;
}

#mySidebar #walletStatusText.warning {
    color: #F59E0B !important;
}

#mySidebar #walletStatusText.error {
    color: #EF4444 !important;
}

/* ============================================
   SIDEBAR MENU
   ============================================ */
#mySidebar .sidebar-menu {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 8px 0 !important;
}

#mySidebar .menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 20px !important;
    color: #1E2329 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

#mySidebar .menu-item:hover {
    background: #F5F6F8 !important;
}

#mySidebar .menu-item.active {
    background: #FFF8E1 !important;
    color: #FCD535 !important;
}

#mySidebar .menu-item i {
    width: 20px !important;
    text-align: center !important;
    font-size: 18px !important;
    color: #6B7280 !important;
}

#mySidebar .menu-item.active i {
    color: #FCD535 !important;
}

#mySidebar .menu-item span {
    flex: 1 !important;
}

/* ============================================
   SIDEBAR SCROLLBAR
   ============================================ */
#mySidebar::-webkit-scrollbar {
    width: 4px !important;
}

#mySidebar::-webkit-scrollbar-track {
    background: #F5F6F8 !important;
}

#mySidebar::-webkit-scrollbar-thumb {
    background: #FCD535 !important;
    border-radius: 4px !important;
}

#mySidebar::-webkit-scrollbar-thumb:hover {
    background: #E8B800 !important;
}

/* ============================================
   MOBILE - TAMPILKAN SEMUA ELEMEN
   ============================================ */
@media (max-width: 992px) {
    #mySidebar .profile-card {
        padding: 0 20px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        background: transparent !important;
    }
    
    #mySidebar .profile-cover {
        border-radius: 0 !important;
    }
    
    #mySidebar .profile-avatar {
        width: 80px !important;
        height: 80px !important;
        margin-top: -40px !important;
    }
    
    #mySidebar .wallet-card {
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #E8EAED !important;
        padding: 16px 20px !important;
        margin-bottom: 0 !important;
    }
    
    #mySidebar .sidebar-menu {
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    #mySidebar .menu-item {
        justify-content: flex-start !important;
        padding: 12px 20px !important;
    }
    
    #mySidebar .menu-item span {
        display: block !important;
    }
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE (NAVBAR)
   ============================================ */
@media (max-width: 768px) {
    .btn-create span {
        display: none !important;
    }
    
    .btn-create {
        padding: 8px 12px !important;
    }
    
    .nav-right .user-profile img {
        width: 32px !important;
        height: 32px !important;
    }
}

@media (max-width: 480px) {
    #mySidebar {
        width: 260px !important;
        /*left: -260px !important;*/
    }
    
    #mySidebar.open {
        left: 0 !important;
    }
}

/* ============================================
   WALLET ADDRESS STYLES - UNTUK SIDEBAR
   ============================================ */

/* Wallet Setting Container */
.wallet-setting {
    margin-top: 8px !important;
}

.wallet-setting > label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1E2329 !important;
    margin-bottom: 6px !important;
}

/* Wallet Address Display - Saat sudah set */
#walletAddressDisplay {
    display: none !important;
}

#walletAddressDisplay[style*="display: block"] {
    display: block !important;
}

.wallet-address-short {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #F5F6F8 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: #1E2329 !important;
}

.wallet-address-short span {
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: #1E2329 !important;
}

.btn-edit-address {
    background: none !important;
    border: none !important;
    color: #FCD535 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
    font-size: 13px !important;
}

.btn-edit-address:hover {
    background: rgba(252, 213, 53, 0.2) !important;
    transform: scale(1.1) !important;
}

/* Wallet Address Edit - Saat input */
#walletAddressEdit {
    display: block !important;
}

#walletAddressEdit[style*="display: none"] {
    display: none !important;
}

.wallet-input-group {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.wallet-input-group input {
    flex: 1 !important;
    min-width: 150px !important;
    padding: 8px 12px !important;
    border: 2px solid #E8EAED !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-family: 'Courier New', monospace !important;
    transition: border-color 0.2s !important;
    background: #FAFBFC !important;
    color: #1E2329 !important;
}

.wallet-input-group input:focus {
    outline: none !important;
    border-color: #FCD535 !important;
    background: #FFFFFF !important;
}

.wallet-input-group input::placeholder {
    color: #9CA3AF !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11px !important;
}

.btn-save-address {
    padding: 8px 16px !important;
    background: #FCD535 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #1E2329 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.btn-save-address:hover {
    background: #E8B800 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(252, 213, 53, 0.3) !important;
}

.btn-cancel-edit {
    padding: 8px 12px !important;
    background: #F5F6F8 !important;
    border: 2px solid #E8EAED !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
}

.btn-cancel-edit:hover {
    background: #E8EAED !important;
    border-color: #D1D5DB !important;
}

/* Wallet Hint / Status */
.wallet-hint {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #6B7280 !important;
    margin-top: 8px !important;
    padding: 6px 10px !important;
    background: #FAFBFC !important;
    border-radius: 6px !important;
}

.wallet-hint i {
    font-size: 12px !important;
    color: #FCD535 !important;
}

#walletStatusText {
    font-weight: 500 !important;
}

#walletStatusText.success {
    color: #10B981 !important;
}

#walletStatusText.warning {
    color: #F59E0B !important;
}

#walletStatusText.error {
    color: #EF4444 !important;
}

/* ============================================
   NOTIFICATION
   ============================================ */
.notification {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    color: #1E2329 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
    max-width: 400px !important;
    animation: slideUp 0.3s ease !important;
}

.notification.success {
    background: #D1FAE5 !important;
    border-left: 4px solid #10B981 !important;
}

.notification.error {
    background: #FEE2E2 !important;
    border-left: 4px solid #EF4444 !important;
}

.notification.warning {
    background: #FEF3C7 !important;
    border-left: 4px solid #F59E0B !important;
}

.notification.info {
    background: #DBEAFE !important;
    border-left: 4px solid #3B82F6 !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   USER PROFILE DI NAVBAR
   ============================================ */
.nav-right .user-profile {
    position: relative !important;
    cursor: default !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 8px !important;
    border-radius: 50px !important;
}

.nav-right .user-profile img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid #FCD535 !important;
    object-fit: cover !important;
}

/* ============================================
   BUTTON CREATE
   ============================================ */
.btn-create {
    background: #FCD535 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    color: #1E2329 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
}

.btn-create:hover {
    background: #E8B800 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(252, 213, 53, 0.3) !important;
}