.add-new-button {
    padding: 10px;
    background: aliceblue;
}

.modal-custom-title {
    font-family: auto;
    font-size: 20px;
    font-weight: bold;
}

.modal-custom-body {
    font-family: Serif;
}

.padding-0 {
    padding: 0;
}

.dynamic-color-text {
    color: rgba(var(--dark-text), 1);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    background: linear-gradient(45deg, #4caf50, #81c784);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    animation: slideIn 0.4s ease-out, fadeOut 0.5s linear 2.5s;
}

/* Toast Content Wrapper */
.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Success Toast */
.success-toast {
    color: white;
}

/* Icon Style */
.toast-icon img {
    width: 40px;
    height: 40px;
}

.width-100 {
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    z-index: 1000; /* Ensure it’s on top */
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.search-input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-size: 16px !important;
    outline: none;
    width: 100%;
    background-color: #f8f8f8;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.profile-image * {
    pointer-events: auto !important;
    z-index: 10 !important;
}

.margin-0 {
    margin: 0 !important;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    border-color: #7366ff;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(115, 102, 255, 0.1);
}

/* Mobile-specific search input optimization */
@media (max-width: 768px) {
    .search-input {
        font-size: 16px !important;
        -webkit-font-smoothing: antialiased;
    }
}

.filter-select,
.reset-button {
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.search-input::placeholder {
    color: #aaa;
}

.reset-button {
    color: #555;
    border-color: #ccc;
    margin: 0;
}

.margin-top-5 {
    margin-top: 5px;
}


/* Message Style */
.toast-message {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Effect Behind Toast */
.toast-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s infinite;
    pointer-events: none;
}

/* Slide-in Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade-out Animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Pulse Effect */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}
/* Fullscreen overlay background */
.bottom-sheet-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    justify-content: center;
    align-items: flex-end;
    transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.open {
    display: flex;
    opacity: 1;
}

/* Bottom sheet content */
.bottom-sheet {
    background-color: rgba(var(--white), 1);
    width: 100%;
    min-height: 90%;
    max-height: 96%;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateY(100%);
    animation: slide-up 0.3s ease forwards;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /*max-height: 90vh; !* Ensures the bottom sheet doesn't overflow *!*/
    /*background: #fff;*/
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Prevents horizontal overflow */
    z-index: 1050;
    animation: slide-up 0.3s ease forwards;
    display: flex;
    flex-direction: column; /* Allows for a scrollable child */
    max-height: 80%; /* Optional: Prevent it from growing too large */
}

.bottom-sheet .scrollable-content {
    flex: 1; /* Ensures it takes the available space */
    overflow-y: auto; /* Enables vertical scrolling */
    padding: 1rem;
}

/* Header of the sheet */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

body.modal-open {
    overflow: hidden;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

.p-10 {
    padding: 10px;
}

/*button,*/
/*input,*/
/*select {*/
/*    touch-action: manipulation;*/
/*    min-height: 48px;*/
/*    padding: 0.75rem;*/
/*    font-size: 1rem;*/
/*}*/

html, body {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.bottom-sheet-overlay {
    pointer-events: auto; /* Allow interaction with the modal */
}

/*.bottom-sheet .scrollable-content {*/
/*    -webkit-overflow-scrolling: touch;*/
/*}*/

/*.bottom-sheet {*/
/*    overflow-y: scroll;*/
/*    -webkit-overflow-scrolling: touch;*/
/*    overscroll-behavior: contain; !* Prevents pull-to-refresh issues *!*/
/*}*/

/*body.modal-open {*/
/*    overflow: hidden;*/
/*    position: fixed;*/
/*    width: 100%;*/
/*}*/



@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.empty_state{
    position: relative;
    top: -35px;
    left: 13%;
    width: 75%;
    height: 75%;
    display: flex;
    flex-direction: column;
    i{
        margin: auto;
        margin-bottom: 0px;
        font-size: 90px;
        color: #ccc;
    }
    h3{
        margin: 8px 0px;
        text-align: center;
        font-weight: normal;
        color: #999;

    }
    p{
        font-size: 14px;
        margin: 0px;
        color: #999;
        text-align: center;
    }
    button{
        outline: none;
        border:  none;
        border-radius: 3px;
        padding: 8px 8px;
        margin: 20px auto auto auto;
        width: 50%;
        max-width: 200px;
        background: #348AC7;
        color: white;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        font-size: 12px;

    }
}

.bill-icon img {
    max-width: 40px; /* Default icon size */
    height: auto;
    transition: transform 0.2s ease-in-out;
}

/* Reduce icon size when the text is too long */
.bill-details.long-text ~ .bill-icon img {
    max-width: 30px; /* Smaller icon */
    transform: scale(0.9);
}

.bill-details h4, h5 {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(13px, 1.8vw, 15px); /* Shrinks only if needed */
    transition: font-size 0.2s ease-in-out;
}

/* Shrink font size if the text is too long */
.bill-details.long-text h4, h5 {
    font-size: 14px; /* Smallest size */
}

.empty-transaction-icon {
    width: 30%;
    position: relative;
    left: 35%;
}
.fixed-month-selector {
    position: fixed;
    width: 90%;
    bottom: 6em;
    left: 50%;
    transform: translateX(-50%);
    background-color: #32809bf0; /* Blue outer background */
    padding: 6px 8px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* <-- important */
    z-index: 999;
}

.fixed-month-selector .nav-button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* takes equal width */
}

.fixed-month-selector .month-wrapper {
    background-color: #00000078; /* Black month background */
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2; /* takes double width compared to nav buttons */
    margin: 0 10px;
}

.img-fluid-custom {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 40%;
    height: auto;
}

.button-icon {
    width: 16px;
    height: 20px;
    margin-right: 1em;
}


.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1000;
    animation: slideIn 0.4s ease-out, fadeOut 0.5s linear 2.5s;
}

/* ✅ Success (green) */
.toast-success {
    background: linear-gradient(135deg, #43a047, #66bb6a);
}

/* 🚫 Danger / Error (red) */
.toast-danger {
    background: linear-gradient(135deg, #e53935, #ff6f60);
}

/* ⚠️ Warning (amber) */
.toast-warning {
    background: linear-gradient(135deg, #f57c00, #ffb74d);
}

/* ℹ️ Info (blue) */
.toast-info {
    background: linear-gradient(135deg, #1e88e5, #64b5f6);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
.margin-3 {
    margin: 0.3rem !important;
}

/* --------------------------
   iOS Bottom Sheet Styling
--------------------------- */

.ios-install-sheet {
    border-radius: 22px 22px 0 0;
    padding-top: 12px;
    background-color: rgba(var(--white), 1);
}

.ios-sheet-body {
    padding: 20px 22px 40px;
}

.ios-app-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ios-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ios-title {
    margin: 0;
    font-weight: 600;
    font-size: 22px;
}

.ios-subtitle {
    margin: 2px 0 0;
    color: #666;
    font-size: 14px;
}

.ios-steps-box {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.ios-step-text {
    font-size: 15px;
    margin-bottom: 12px;
}

.ios-step-list {
    margin: 0;
    padding-left: 20px;
}

.ios-step-list li {
    margin-bottom: 6px;
    font-size: 15px;
}

/* --------------------------
   Slider
--------------------------- */

.ios-slider-wrapper {
    position: relative;
}

.ios-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    scrollbar-width: none;
}

.ios-slider::-webkit-scrollbar {
    display: none;
}

.ios-slide {
    width: 48%;
    height: auto;
    border-radius: 18px;
    flex-shrink: 0;
    scroll-snap-align: center;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    object-fit: cover;
}

.ios-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.ios-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.ios-slider-dots .dot.active {
    background: #000;
}
.offcanvas.ios-install-sheet {
    height: 48%;       /* adjust percentage as needed */
    max-height: 90%;   /* optional, to prevent overflow on small screens */
    background-color: rgba(var(--white), 1);
}

.offcanvas-bottom {
    transition: transform 0.3s ease-in-out;
}

.ios-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    width: 100%;
    background: #f5f5f7;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    border: 1px solid #ddd;
}

.ios-action-btn svg {
    flex-shrink: 0;
}

/* ===== Dark Mode - iOS Install Sheet ===== */
.dark .ios-install-sheet {
    background-color: #232121 !important;
}

.dark .ios-sheet-body {
    background-color: #232121 !important;
}

.dark .ios-app-info {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.dark .ios-title {
    color: rgba(255, 255, 255, 1);
}

.dark .ios-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.dark .ios-steps-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .ios-step-text {
    color: rgba(255, 255, 255, 0.9);
}

.dark .ios-step-list li {
    color: rgba(255, 255, 255, 0.8);
}

.dark .ios-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.dark .ios-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.dark .ios-action-btn:active {
    transform: scale(0.98);
}

.dark .ios-action-btn img {
    opacity: 0.9;
}

.dark .ios-slider-dots .dot {
    background: rgba(255, 255, 255, 0.3);
}

.dark .ios-slider-dots .dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.dark .ios-slide {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.dark .offcanvas {
    background-color: #232121 !important;
}

.dark .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.dark .btn-close:hover {
    opacity: 1;
}

.padding-bottom-0 {
    padding-bottom: 0 !important;
}

.padding-top-10 {
    padding-top: 10px !important;
}

/* Collapsible Form Styling */
.collapse-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.collapse-toggle-btn span {
    display: inline-block;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.collapse-toggle-btn:hover {
    transform: translateY(-2px);
}

/* Form Collapse Section */
.form-collapse-section {
    animation: slideDown 0.4s ease-out forwards;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        overflow: visible;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
[data-theme="dark"] .form-collapse-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Password Input Wrapper */
.form-input.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--light-text), 1);
    transition: all 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: rgba(var(--theme-color), 1);
    background-color: rgba(var(--theme-color), 0.08);
    border-radius: 4px;
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

[dir=rtl] .password-toggle-btn {
    right: unset;
    left: 12px;
}

.password-toggle-btn i {
    font-size: 18px;
}

/* Additional Auth Form Improvements */
.form-input {
    position: relative;
}

.auth-form .form-group .form-label {
    color: rgba(var(--dark-text), 1);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Width utility for buttons */
.width-100 {
    width: 100%;
    margin-top: 4px;
}

.mt-3 {
    margin-top: 12px !important;
}

/* Error message styling in auth forms */
.auth-form .alert {
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background-color: rgba(var(--box-bg), 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.strength-weak {
    width: 33.33%;
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.strength-fill.strength-medium {
    width: 66.66%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.strength-fill.strength-strong {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 50px;
}

.strength-text.strength-weak {
    color: #ef4444;
}

.strength-text.strength-medium {
    color: #f59e0b;
}

.strength-text.strength-strong {
    color: #10b981;
}

/* Dark Mode Password Strength */
.dark .strength-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

/* NewUserSettings Page Styles */
.setup-intro {
    margin-bottom: 16px;
    padding: 8px 0;
    text-align: center;
}

.setup-intro-text {
    color: rgba(var(--light-text), 1);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.form-section {
    margin-bottom: 20px;
}


.form-section .form-group {
    margin-bottom: 0;
}

.form-section .form-label {
    font-weight: 500;
    font-size: 14px;
    color: rgba(var(--dark-text), 1);
    margin: 0;
}

.setup-btn {
    margin-top: 24px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    min-height: 46px;
}

/* Dark Mode Support */
.dark .setup-intro-text {
    color: rgba(var(--light-text), 1);
}

.dark .form-icon {
    color: rgba(115, 102, 255, 0.7);
}

/* =====================
   PWA Install Settings Section - Modern Mobile-First Design
===================== */

/* Settings Section Container - Install App */
.settings-section {
    margin-bottom: 20px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

/* Settings Header with Icon */
.settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(98, 44, 253, 0.1);
    color: rgba(98, 44, 253, 1);
    font-size: 18px;
    flex-shrink: 0;
}

.settings-icon.install {
    background: rgba(16, 185, 129, 0.1);
    color: rgba(16, 185, 129, 1);
}

/* Dark Mode Icon */
.dark .settings-icon {
    background: rgba(98, 44, 253, 0.15);
}

.dark .settings-icon.install {
    background: rgba(16, 185, 129, 0.15);
}

/* Settings Title */
.settings-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(var(--dark-text), 1);
    margin: 0;
}

.dark .settings-title {
    color: rgba(255, 255, 255, 1);
}

/* Settings Content */
.settings-content {
    padding: 0;
}

/* Setting Item */
.setting-item {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 12px 0;
    align-items: center;
    justify-content: space-between;
}

/* Setting Info (Description + Title) */
.setting-info {
    flex: 1;
    min-width: 0;
}

.setting-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(var(--dark-text), 1);
    margin: 0 0 4px 0;
    word-break: break-word;
}

.setting-info .setting-description {
    font-size: 12px;
    color: rgba(var(--light-text), 1);
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}

.dark .setting-info h4 {
    color: rgba(255, 255, 255, 1);
}

.dark .setting-info .setting-description {
    color: rgba(var(--light-text), 1);
}

/* Modern Pill Button for Install/Instructions */
.settings-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 18px;
    border: 1px solid rgba(98, 44, 253, 0.3);
    background: rgba(98, 44, 253, 0.08);
    color: rgba(98, 44, 253, 1);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 36px;
    flex-shrink: 0;
}

.settings-pill-btn:hover {
    background: rgba(98, 44, 253, 0.12);
    border-color: rgba(98, 44, 253, 0.5);
    transform: translateY(-1px);
}

.settings-pill-btn:active {
    transform: translateY(0);
}

.settings-pill-btn .icon {
    width: 14px;
    height: 14px;
}

/* Dark Mode Button */
.dark .settings-pill-btn {
    border-color: rgba(98, 44, 253, 0.4);
    background: rgba(98, 44, 253, 0.12);
}

.dark .settings-pill-btn:hover {
    background: rgba(98, 44, 253, 0.16);
    border-color: rgba(98, 44, 253, 0.6);
}

/* ===== Account List Page - Modern Mobile-First Design ===== */

.account-list-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Account List Header - Improved Design */
.account-list-header {
    background: rgba(var(--white), 1);
    border-bottom: 1px solid rgba(var(--box-bg), 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(var(--dark-text), 0.05);
}

.account-header-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

/* Header Back Button - Improved */
.header-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--white), 1);
    border: 1px solid rgba(var(--box-bg), 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(var(--dark-text), 1);
    flex-shrink: 0;
}

.header-back-btn:hover {
    background-color: rgba(var(--box-bg), 0.08);
    border-color: rgba(var(--box-bg), 0.25);
    transform: translateY(-1px);
}

.header-back-btn:active {
    transform: translateY(0);
}

/* Header Add Button - Distinct Style */
.header-add-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(98, 44, 253, 1), rgba(98, 44, 253, 0.8));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(var(--white), 1);
    flex-shrink: 0;
    font-weight: 600;
}

.header-add-btn:hover {
    background: linear-gradient(135deg, rgba(98, 44, 253, 1), rgba(98, 44, 253, 0.9));
    box-shadow: 0 4px 12px rgba(98, 44, 253, 0.3);
    transform: translateY(-1px);
}

.header-add-btn:active {
    transform: translateY(0);
}

/* Header Title */
.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 700;
    color: rgba(var(--dark-text), 1);
    margin: 0;
    white-space: nowrap;
}

/* Dark Mode Header */
.dark .account-list-header {
    background: rgba(var(--dark-bg), 1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .header-back-btn {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

.dark .header-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.dark .header-title {
    color: rgba(255, 255, 255, 1);
}

/* Account List Section */
.account-list-section {
    flex: 1;
}

/* Account Card - Modern Design */
.account-list-box {
    background: rgba(var(--white), 1);
    border: 1px solid rgba(var(--box-bg), 0.12);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.account-link {
    text-decoration: none;
    display: block;
    color: inherit;
    transition: all 0.3s ease;
}

.account-link:hover .account-list-box {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(var(--dark-text), 0.12);
    border-color: rgba(98, 44, 253, 0.2);
}

/* Account Header Bar - Accent Color */
.account-header-bar {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(98, 44, 253, 1), rgba(98, 44, 253, 0.6));
}

/* Account Content */
.account-content {
    padding: 14px 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-name {
    font-size: 14px;
    font-weight: 700;
    color: rgba(var(--dark-text), 1);
    margin: 0 0 6px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.account-type {
    font-size: 12px;
    color: rgba(var(--light-text), 0.8);
    margin: 0 0 8px 0;
    font-weight: 500;
    text-transform: capitalize;
}

.account-balance {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-label {
    font-size: 11px;
    color: rgba(var(--light-text), 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Account Footer Indicator */
.account-footer {
    padding: 0 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 1);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Dark Mode Account Card */
.dark .account-list-box {
    background: rgba(var(--dark-bg), 1);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .account-name {
    color: rgba(255, 255, 255, 1);
}

.dark .balance-value {
    color: rgba(255, 255, 255, 1);
}

/* Error Section */
.error-section {
    padding: 12px 0;
    background: rgba(239, 68, 68, 0.05);
}

.error-section .alert {
    margin: 0;
    border-radius: 8px;
}

/* Empty State - Accounts */
.empty-accounts-state {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.empty-state-content {
    text-align: center;
    max-width: 320px;
}

.empty-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    opacity: 0.3;
    color: rgba(var(--dark-text), 1);
}

.empty-state-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: rgba(var(--dark-text), 1);
    margin: 0 0 8px 0;
}

.empty-state-content p {
    font-size: 13px;
    color: rgba(var(--light-text), 0.8);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Empty State Button */
.empty-state-btn {
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, rgba(98, 44, 253, 1), rgba(98, 44, 253, 0.8));
    color: rgba(var(--white), 1);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.empty-state-btn:hover {
    background: linear-gradient(135deg, rgba(98, 44, 253, 1), rgba(98, 44, 253, 0.9));
    box-shadow: 0 4px 12px rgba(98, 44, 253, 0.3);
    transform: translateY(-1px);
}

.empty-state-btn:active {
    transform: translateY(0);
}

/* Dark Mode Empty State */
.dark .empty-state-content h3 {
    color: rgba(255, 255, 255, 1);
}

/* Skeleton Cards for Loading State */
.account-list-box.skeleton-card {
    background: rgba(var(--box-bg), 0.05);
    pointer-events: none;
}

.skeleton-header {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(var(--box-bg), 0.2) 25%, rgba(var(--box-bg), 0.1) 50%, rgba(var(--box-bg), 0.2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    background: linear-gradient(90deg, rgba(var(--box-bg), 0.2) 25%, rgba(var(--box-bg), 0.1) 50%, rgba(var(--box-bg), 0.2) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    margin-bottom: 8px;
}

.skeleton-title {
    width: 70%;
    height: 14px;
}

.skeleton-subtitle {
    width: 50%;
    height: 12px;
}

.skeleton-balance {
    width: 60%;
    height: 14px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile First - Extra Small (< 360px) */
@media (max-width: 359px) {
    .account-header-panel {
        gap: 8px;
    }

    .header-back-btn,
    .header-add-btn {
        width: 36px;
        height: 36px;
    }

    .header-title {
        font-size: 16px;
    }

    .account-content {
        padding: 12px 12px 10px;
    }

    .account-name {
        font-size: 13px;
    }

    .empty-state-content {
        max-width: 280px;
    }

    .empty-state-content h3 {
        font-size: 16px;
    }

    .empty-state-content p {
        font-size: 12px;
    }
}

/* Mobile First - Small Phones (360px - 480px) */
@media (min-width: 360px) and (max-width: 480px) {
    .account-content {
        padding: 13px 13px 11px;
    }

    .account-name {
        font-size: 13px;
    }
    .empty-state-content {
        max-width: 300px;
    }
}

/* Mobile First - Medium Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .account-content {
        padding: 14px 14px 12px;
    }

    .account-name {
        font-size: 14px;
    }
    .empty-state-content {
        max-width: 360px;
    }

    .empty-state-content h3 {
        font-size: 20px;
    }
}

/* Tablet & Desktop (769px+) */
@media (min-width: 769px) {
    .account-list-header {
        position: static;
    }

    .account-header-panel {
        gap: 16px;
    }

    .header-back-btn,
    .header-add-btn {
        width: 44px;
        height: 44px;
    }

    .header-title {
        font-size: 20px;
    }

    .account-content {
        padding: 16px 16px 14px;
    }

    .account-name {
        font-size: 15px;
    }

    .account-type {
        font-size: 13px;
    }
    .account-link:hover .account-list-box {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(var(--dark-text), 0.15);
    }
}

/* Account List Skeleton & Empty State Styles */
.skeleton-card {
    background: #fff;
    min-height: 120px;
}

.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.empty-accounts-state {
    padding: 40px 20px;
    background: transparent;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-title {
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-description {
    color: #999;
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Account Box Improvements */
.saving-plan-box {
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.saving-plan-box:active {
    transform: scale(0.98);
}

.account-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.account-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--theme-color), 0.08); /* Transparent theme color */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-icon-wrapper img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Dark Mode for Saving Plan Box (Account List) */
.dark .saving-plan-box {
    background-color: rgba(var(--white), 0.05); /* Subtle dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.dark .saving-plan-box h4,
.dark .saving-plan-box h3 {
    color: rgba(255, 255, 255, 0.9);
}

.dark .saving-plan-box h6 {
    color: rgba(255, 255, 255, 0.7);
}

.dark .saving-plan-box h6 b {
    color: rgba(255, 255, 255, 1);
}

.dark .account-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark .account-icon-wrapper img {
    filter: invert(1);
    opacity: 0.9;
}

/* Modern Account Section Styles */
.modern-account-box {
    padding: 12px 8px;
    border-radius: 12px;
    background-color: rgba(var(--white), 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dark .modern-account-box {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modern-account-box:active {
    transform: scale(0.97);
}

.modern-account-box .d-flex {
    align-items: center;
}

.modern-account-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark .modern-account-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark .modern-account-icon img {
    filter: invert(1);
    opacity: 0.9;
}

.modern-account-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.modern-account-details {
    overflow: hidden;
    flex: 1;
}

.modern-account-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(var(--light-text), 1);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-account-balance {
    font-size: clamp(10px, 3.5vw, 15px);
    font-weight: 550;
    padding-top: 4px;
    margin: 0;
    color: rgba(var(--dark-text), 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add New Button Styling */
.add-account-box {
    border: 1px dashed #ccc;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column; /* Kept as column per request */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 6px; /* Reduced gap for compact height */
    padding: 8px !important; /* Slightly reduced padding to match height of regular cards */
}

.add-account-box:hover {
    border-color: rgba(var(--theme-color), 0.5);
    background-color: rgba(var(--theme-color), 0.02);
}

.add-account-icon {
    width: 28px; /* Reduced size to reduce overall height (was 32px) */
    height: 28px; /* Reduced size */
    border-radius: 50%;
    background-color: rgba(var(--theme-color), 0.1);
    color: rgba(var(--theme-color), 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.add-account-text {
    font-size: clamp(9px, 3vw, 12px);
    font-weight: 600;
    color: rgba(var(--theme-color), 1);
}

.dark .add-account-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-style: dashed;
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark .add-account-icon {
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    border: none;
}

.dark .add-account-text {
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

.dark .add-account-box:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.08);
}

.dark .add-account-box:hover .add-account-icon {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.15);
}

.dark .add-account-box:hover .add-account-text {
    color: rgba(255, 255, 255, 1);
}

.dark .add-account-box:active {
    transform: scale(0.97);
}

/* ================================
   Dark Mode - Navbar Icons Visibility
   ================================ */

/* Make inactive icons much lighter in dark mode for better visibility */
.dark .navbar-menu ul li a .icon .unactive {
    opacity: 1;
    filter: brightness(2.2) saturate(1.2);
}

.dark .navbar-menu ul li a .icon .unactive img {
    filter: brightness(2.5) saturate(1.3) contrast(1.2);
    opacity: 1;
}

/* Hover effect for inactive icons in dark mode */
.dark .navbar-menu ul li:hover a .icon .unactive {
    opacity: 1;
    filter: brightness(2.8) saturate(1.4);
}

.dark .navbar-menu ul li:hover a .icon .unactive img {
    filter: brightness(3) saturate(1.5) contrast(1.3);
    opacity: 1;
}

/* Ensure active icons remain properly colored in dark mode */
.dark .navbar-menu ul li.active .icon .active {
    filter: brightness(1.3);
}

/* ================================
   Transaction List - Modern Design
   ================================ */

/* Transaction Box - Button with Better UX */
.transaction-box-btn {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background-color: rgba(var(--white), 1);
    border: 1px solid rgba(var(--box-bg), 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(var(--dark-text), 0.04);
}

.transaction-box-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(var(--dark-text), 0.12);
    border-color: rgba(var(--box-bg), 0.2);
}

.transaction-box-btn:active {
    transform: translateY(-2px);
}

/* Transaction Image */
.transaction-image {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background-color: rgba(var(--box-bg), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.transaction-image img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Transaction Details */
.transaction-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.transaction-name {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.transaction-name h5 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(var(--dark-text), 1);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.transaction-name h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.transaction-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.transaction-account {
    color: rgba(var(--light-text), 1) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.transaction-date {
    color: rgba(var(--light-text), 0.7) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Skeleton Transaction */
.skeleton-transaction {
    background: rgba(var(--box-bg), 0.05) !important;
    pointer-events: none;
}

/* Dark Mode - Transaction Box */
.dark .transaction-box-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .transaction-box-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dark .transaction-image {
    background-color: rgba(255, 255, 255, 0.08);
}

.dark .transaction-name h5 {
    color: rgba(255, 255, 255, 1);
}

.dark .transaction-account {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark .transaction-date {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Mobile First - Extra Small */
@media (max-width: 359px) {
    .transaction-box-btn {
        padding: 12px;
        gap: 10px;
    }
    /*.modern-account-balance {*/
    /*    font-size: 12px;*/
    /*}*/

    .transaction-image {
        width: 44px;
        height: 44px;
    }

    .transaction-image img {
        width: 24px;
        height: 24px;
    }

    .transaction-name h5 {
        font-size: 13px;
    }

    .transaction-name h3 {
        font-size: 13px;
    }

    .transaction-meta {
        font-size: 11px;
    }
}

/* Mobile First - Small Phones */
@media (min-width: 360px) and (max-width: 480px) {
    .transaction-box-btn {
        padding: 13px;
    }

    .transaction-image {
        width: 46px;
        height: 46px;
    }

    .transaction-image img {
        width: 26px;
        height: 26px;
    }
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .transaction-box-btn {
        padding: 16px;
    }

    .transaction-image {
        width: 52px;
        height: 52px;
    }

    .transaction-image img {
        width: 30px;
        height: 30px;
    }

    .transaction-name h5 {
        font-size: 15px;
    }

    .transaction-name h3 {
        font-size: 15px;
    }
}

/* Accessibility */
.transaction-box-btn:focus {
    outline: 2px solid rgba(var(--theme-color), 0.5);
    outline-offset: 2px;
}

.transaction-box-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ================================
   Top Expenses - Skeleton Loading
   ================================ */

.expense-box {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.expense-box:hover {
    transform: translateY(-4px);
}

.expense-box:active {
    transform: translateY(-2px);
}

/* Skeleton Expense Loading */
.skeleton-expense {
    background: rgba(var(--box-bg), 0.05);
    pointer-events: none;
    min-height: 80px;
}

.skeleton-expense .skeleton-loading {
    background: linear-gradient(90deg, rgba(var(--box-bg), 0.2) 25%, rgba(var(--box-bg), 0.1) 50%, rgba(var(--box-bg), 0.2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Dark Mode - Expense Box */
.dark .expense-box {
    color: rgba(255, 255, 255, 1);
}

.dark .skeleton-expense {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile First - Responsive Expense Grid */
@media (max-width: 480px) {
    .expense-box {
        min-height: 75px;
    }
}

@media (min-width: 481px) {
    .expense-box {
        min-height: 85px;
    }
}

/* ================================
   React-Select Dark Mode Styling
   ================================ */

/* Dark Mode - Control (the main select box) */
.dark .react-select__control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark .react-select__control:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.dark .react-select__control--is-focused {
    border-color: rgba(98, 44, 253, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(98, 44, 253, 0.3) !important;
}

/* Dark Mode - Value Container */
.dark .react-select__value-container {
    background-color: transparent !important;
}

/* Dark Mode - Single Value (selected option text) */
.dark .react-select__single-value {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode - Placeholder */
.dark .react-select__placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Dark Mode - Input (search field) */
.dark .react-select__input {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dark .react-select__input input {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode - Dropdown Indicator (arrow) */
.dark .react-select__dropdown-indicator {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dark .react-select__dropdown-indicator:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark Mode - Clear Indicator */
.dark .react-select__clear-indicator {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dark .react-select__clear-indicator:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark Mode - Indicator Separator */
.dark .react-select__indicator-separator {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode - Menu (dropdown) */
.dark .react-select__menu {
    background-color: #232121 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

/* Dark Mode - Menu List */
.dark .react-select__menu-list {
    background-color: #232121 !important;
}

/* Dark Mode - Option */
.dark .react-select__option {
    background-color: #232121 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
}

/* Dark Mode - Option Focused/Hovered */
.dark .react-select__option--is-focused {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode - Option Selected */
.dark .react-select__option--is-selected {
    background-color: rgba(98, 44, 253, 0.7) !important;
    color: #fff !important;
}

/* Dark Mode - Multi Value */
.dark .react-select__multi-value {
    background-color: rgba(98, 44, 253, 0.4) !important;
}

.dark .react-select__multi-value__label {
    color: rgba(255, 255, 255, 1) !important;
}

.dark .react-select__multi-value__remove {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark .react-select__multi-value__remove:hover {
    background-color: rgba(98, 44, 253, 0.6) !important;
    color: rgba(255, 255, 255, 1) !important;
}

/* Dark Mode - No Options Message */
.dark .react-select__menu-notice--no-options {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Dark Mode - Loading Message */
.dark .react-select__menu-notice--loading {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ================================
   Card Design - Modern & Mobile-First
   ================================ */

/* Card Number Styling - Beautiful, Modern & Professional */
.card-number {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3.5px;
    margin: 0 0 4px 0;
    opacity: 0.95;
    word-spacing: 4px;
    font-family: 'SF Mono', 'Roboto Mono', 'Menlo', 'Consolas', monospace;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Card Name Styling */
.card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Amount */
.card-amount {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Card Numbers Section (Expiry & CVV) */
.card-numbers {
    text-align: right;
    min-width: fit-content;
}

.cvv-code {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    opacity: 0.85;
    text-transform: uppercase;
}

/* Card Logo Container */
.card-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/*.card-logo img {*/
/*    width: 50px;*/
/*    height: 32px;*/
/*    object-fit: contain;*/
/*}*/

/* Dropdown Button in Card Header */
.card-logo .dropdown {
    position: relative;
}

.card-logo .back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 1);
    padding: 0;
}

.card-logo .back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.card-logo .back-btn:active {
    transform: scale(0.95);
}

.card-logo .back-btn .icon {
    width: 18px;
    height: 18px;
}

/* Dropdown Menu */
.card-logo .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 8px;
    padding: 8px 0;
    background: rgba(var(--white), 1);
    z-index: 1000;
}

.card-logo .dropdown-item {
    padding: 11px 16px;
    font-size: 14px;
    color: rgba(var(--dark-text), 1);
    border-radius: 0;
    transition: all 0.2s ease;
    display: block;
    cursor: pointer;
}

.card-logo .dropdown-item:hover {
    background: rgba(var(--theme-color), 0.1);
    color: rgba(var(--theme-color), 1);
}

.card-logo .dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.card-logo .dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

/* Card Chip */
.chip {
    width: 45px;
    height: 28px;
    object-fit: contain;
}

/* Dark Mode - Card Styling */
.dark .card-logo .back-btn {
    background: rgba(255, 255, 255, 0.12);
}

.dark .card-logo .back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dark .card-logo .dropdown-menu {
    background: rgba(35, 33, 33, 1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.dark .card-logo .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.dark .card-logo .dropdown-item:hover {
    background: rgba(98, 44, 253, 0.15);
    color: rgba(98, 44, 253, 1);
}

/* Card List Container */
.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Credit Card Box - Ensure consistent spacing and layout */
.credit-card-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin: 0;
    padding: 0;
}

.credit-card-box:first-child {
    margin-top: 0;
}

.credit-card-box li {
    list-style: none;
}

/* Responsive Grid - Single card per line */
@media (min-width: 481px) and (max-width: 768px) {
    .card-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (min-width: 769px) {
    .card-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile First - Compact Spacing */
@media (max-width: 480px) {
    .account-section-box {
        padding-right: calc(var(--bs-gutter-x) * 0.2);
        padding-left: calc(var(--bs-gutter-x) * 0.2);
    }
    .card-number {
        font-size: 15px;
        letter-spacing: 2.8px;
        word-spacing: 2px;
        margin-bottom: 3px;
    }

    .card-name {
        font-weight: 600;
        font-size: 15px;
    }

    .card-amount {
        font-size: 22px;
    }

    .card-numbers {
        font-size: 11px;
    }

    /*.card-logo img {*/
    /*    width: 42px;*/
    /*    height: 26px;*/
    /*}*/

    .card-logo .back-btn {
        width: 32px;
        height: 32px;
    }
}
