/* ====================== Custom Dashboard Styles ====================== */

/* Balance Display Section - Force Left Aligned */
.balance-display {
    text-align: left !important;
    padding: 20px 0;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.balance-display__label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--black)/0.5);
    margin-bottom: 8px;
    text-align: left !important;
}

.balance-display__amount {
    display: block;
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--base));
    line-height: 1.2;
    text-align: left !important;
}

@media screen and (max-width: 991px) {
    .balance-display__label {
        font-size: 0.9375rem;
    }
    
    .balance-display__amount {
        font-size: 2rem;
    }
}

@media screen and (max-width: 575px) {
    .balance-display {
        padding: 15px 0;
    }
    
    .balance-display__label {
        font-size: 0.875rem;
        margin-bottom: 5px;
    }
    
    .balance-display__amount {
        font-size: 1.75rem;
    }
}

/* ====================== ATM Card Styles ====================== */
.atm-card-container {
    width: 100%;
    overflow: hidden;
}

.atm-card-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.atm-card-slider::-webkit-scrollbar {
    display: none;
}

/* ATM Card Base */
.atm-card {
    flex: 0 0 85%;
    max-width: 380px;
    min-width: 280px;
    aspect-ratio: 1.586 / 1;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 4px 15px hsl(var(--black)/0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media screen and (max-width: 575px) {
    .atm-card {
        flex: 0 0 88%;
        padding: 15px;
        border-radius: 6px;
    }
}

/* ========== Front of Card ========== */
.atm-card--front {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
}

.atm-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.atm-card__chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37 0%, #f2d06b 50%, #d4af37 100%);
    border-radius: 5px;
    position: relative;
}

.atm-card__chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 25px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 3px;
}

.atm-card__chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    border-right: 1px solid rgba(0,0,0,0.2);
}

@media screen and (max-width: 575px) {
    .atm-card__chip {
        width: 38px;
        height: 28px;
    }
}

.atm-card__contactless {
    color: rgba(255,255,255,0.8);
    transform: rotate(90deg);
}

.atm-card__contactless svg {
    width: 22px;
    height: 22px;
}

/* Card Number */
.atm-card__number {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 0 5px;
}

@media screen and (max-width: 575px) {
    .atm-card__number {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

.atm-card__number span {
    display: inline-block;
}

/* Card Bottom */
.atm-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.atm-card__details {
    display: flex;
    gap: 25px;
}

@media screen and (max-width: 575px) {
    .atm-card__details {
        gap: 15px;
    }
}

.atm-card__holder,
.atm-card__expiry {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.atm-card__label {
    font-size: 0.5rem;
    letter-spacing: 1px;
    opacity: 0.7;
    text-transform: uppercase;
}

.atm-card__value {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media screen and (max-width: 575px) {
    .atm-card__label {
        font-size: 0.45rem;
    }
    
    .atm-card__value {
        font-size: 0.7rem;
    }
}

.atm-card__brand {
    text-align: right;
}

.atm-card__visa {
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 1px;
    color: #ffffff;
}

@media screen and (max-width: 575px) {
    .atm-card__visa {
        font-size: 1.2rem;
    }
}

/* ========== Back of Card ========== */
.atm-card--back {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f3460 100%);
    color: #ffffff;
    padding: 0;
}

.atm-card__magnetic {
    width: 100%;
    height: 40px;
    background: #1a1a1a;
    margin-top: 20px;
}

@media screen and (max-width: 575px) {
    .atm-card__magnetic {
        height: 32px;
        margin-top: 15px;
    }
}

.atm-card__strip-area {
    display: flex;
    align-items: stretch;
    margin: 15px 20px;
    height: 36px;
}

@media screen and (max-width: 575px) {
    .atm-card__strip-area {
        margin: 12px 15px;
        height: 30px;
    }
}

.atm-card__signature {
    flex: 1;
    background: #e8e8e8;
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.atm-card__signature-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 5px,
        rgba(0,0,0,0.05) 5px,
        rgba(0,0,0,0.05) 6px
    );
}

.atm-card__signature span {
    font-size: 0.65rem;
    color: #333;
    font-style: italic;
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 575px) {
    .atm-card__signature span {
        font-size: 0.55rem;
    }
}

.atm-card__cvv-box {
    width: 50px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ccc;
}

.atm-card__cvv-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    font-family: 'Consolas', 'Courier New', monospace;
}

@media screen and (max-width: 575px) {
    .atm-card__cvv-box {
        width: 40px;
    }
    
    .atm-card__cvv-value {
        font-size: 0.75rem;
    }
}

.atm-card__back-text {
    padding: 10px 20px;
    font-size: 0.5rem;
    line-height: 1.5;
    opacity: 0.6;
}

.atm-card__back-text p {
    margin: 0 0 3px 0;
}

@media screen and (max-width: 575px) {
    .atm-card__back-text {
        padding: 8px 15px;
        font-size: 0.45rem;
    }
}

.atm-card__back-brand {
    position: absolute;
    bottom: 15px;
    right: 20px;
}

@media screen and (max-width: 575px) {
    .atm-card__back-brand {
        bottom: 10px;
        right: 15px;
    }
}

/* ========== Card Indicator Dots ========== */
.atm-card-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.atm-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsl(var(--black)/0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.atm-card-dot.active {
    width: 28px;
    border-radius: 5px;
    background: hsl(var(--base));
}

.atm-card-dot:hover {
    background: hsl(var(--base)/0.6);
}

/* ====================== Bottom Navigation Menu ====================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: hsl(var(--white));
    border-top: 1px solid hsl(var(--black)/0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 9999;
    box-shadow: 0 -5px 20px hsl(var(--black)/0.05);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: hsl(var(--black)/0.5);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    transition: 0.3s;
}

.bottom-nav__item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transform: translateY(0);
}

.bottom-nav__item span {
    line-height: 1;
}

.bottom-nav__item:hover {
    color: hsl(var(--base));
}

.bottom-nav__item--active {
    color: hsl(var(--base));
}

/* Center Plus Button */
.bottom-nav__item--center {
    position: relative;
    top: -20px;
}

.bottom-nav__plus {
    width: 55px;
    height: 55px;
    background: hsl(var(--base));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--white));
    font-size: 1.75rem;
    box-shadow: 0 5px 20px hsl(var(--base)/0.4);
    transition: 0.3s;
}

.bottom-nav__plus i {
    margin-bottom: 0;
    transform: translateY(0);
}

.bottom-nav__item--center:hover .bottom-nav__plus {
    background: hsl(var(--base-d-200));
    transform: scale(1.05);
}

@media screen and (max-width: 575px) {
    .bottom-nav {
        height: 65px;
        padding: 0 5px;
    }
    
    .bottom-nav__item {
        padding: 6px 8px;
        font-size: 0.6875rem;
    }
    
    .bottom-nav__item i {
        font-size: 1.25rem;
    }
    
    .bottom-nav__plus {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .bottom-nav__item--center {
        top: -15px;
    }
}

/* Add padding to main content to prevent bottom nav overlap */
/*.main-content--custom {*/
/*    padding-bottom: 90px;*/
/*}*/

/*@media screen and (max-width: 575px) {*/
/*    .main-content--custom {*/
/*        padding-bottom: 80px;*/
/*    }*/
/*}*/

/* Add padding to main content to prevent bottom nav overlap */
.main-content--custom {
    padding-bottom: 120px;
}

@media screen and (max-width: 575px) {
    .main-content--custom {
        padding-bottom: 100px;
    }
}





/* ====================== Segmented Buttons ====================== */
.segmented-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding: 0 10px;
}

.segmented-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 90px;
    height: 80px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--black)/0.1);
    border-radius: 12px;
    color: hsl(var(--black)/0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px hsl(var(--black)/0.05);
}

.segmented-btn i {
    font-size: 1.5rem;
    color: hsl(var(--base));
    transform: translateY(0);
}

.segmented-btn:hover {
    background: hsl(var(--base));
    color: hsl(var(--white));
    border-color: hsl(var(--base));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px hsl(var(--base)/0.3);
}

.segmented-btn:hover i {
    color: hsl(var(--white));
}

@media screen and (max-width: 575px) {
    .segmented-buttons {
        gap: 10px;
        margin-top: 20px;
    }
    
    .segmented-btn {
        width: 80px;
        height: 70px;
        gap: 6px;
        font-size: 0.7rem;
        border-radius: 10px;
    }
    
    .segmented-btn i {
        font-size: 1.25rem;
    }
}





/* ====================== Transaction History ====================== */
.history-section {
    margin-top: 30px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--black)/0.8);
    margin: 0;
}

.history-view-all {
    font-size: 0.85rem;
    font-weight: 500;
    color: hsl(var(--base));
    text-decoration: none;
}

.history-view-all:hover {
    text-decoration: underline;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--black)/0.05);
    border-radius: 10px;
    transition: 0.3s;
}

.history-item:hover {
    box-shadow: 0 3px 10px hsl(var(--black)/0.08);
}

.history-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.history-item__icon i {
    transform: translateY(0);
}

.history-item__icon--credit {
    background: hsl(var(--success)/0.1);
    color: hsl(var(--success));
}

.history-item__icon--debit {
    background: hsl(var(--danger)/0.1);
    color: hsl(var(--danger));
}

.history-item__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.history-item__title {
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(var(--black)/0.8);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item__date {
    font-size: 0.75rem;
    color: hsl(var(--black)/0.5);
}

.history-item__amount {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: hsl(var(--black)/0.4);
    gap: 10px;
}

.history-empty i {
    font-size: 2.5rem;
    transform: translateY(0);
}

.history-empty span {
    font-size: 0.9rem;
}

@media screen and (max-width: 575px) {
    .history-section {
        margin-top: 25px;
    }
    
    .history-title {
        font-size: 1rem;
    }
    
    .history-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .history-item__icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .history-item__title {
        font-size: 0.85rem;
    }
    
    .history-item__date {
        font-size: 0.7rem;
    }
    
    .history-item__amount {
        font-size: 0.85rem;
    }
}




/* ====================== Transfer Modal Styles ====================== */
.transfer-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.transfer-modal .modal-header {
    border-bottom: 1px solid hsl(var(--black)/0.1);
    padding: 20px;
}

.transfer-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--black)/0.8);
}

.transfer-modal .modal-body {
    padding: 15px;
}

.transfer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transfer-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: hsl(var(--black)/0.02);
    border: 1px solid hsl(var(--black)/0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.transfer-option:hover {
    background: hsl(var(--base)/0.05);
    border-color: hsl(var(--base)/0.3);
    transform: translateX(5px);
}

.transfer-option__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: hsl(var(--base)/0.1);
    color: hsl(var(--base));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.transfer-option__icon i {
    transform: translateY(0);
}

.transfer-option__icon--other {
    background: hsl(var(--success)/0.1);
    color: hsl(var(--success));
}

.transfer-option__icon--wire {
    background: hsl(var(--info)/0.1);
    color: hsl(var(--info));
}

.transfer-option__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.transfer-option__title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--black)/0.8);
}

.transfer-option__desc {
    font-size: 0.8rem;
    color: hsl(var(--black)/0.5);
}

.transfer-option > .ti-chevron-right {
    color: hsl(var(--black)/0.3);
    font-size: 1.25rem;
    transform: translateY(0);
}

@media screen and (max-width: 575px) {
    .transfer-modal .modal-header {
        padding: 15px;
    }
    
    .transfer-option {
        padding: 12px;
        gap: 12px;
    }
    
    .transfer-option__icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .transfer-option__title {
        font-size: 0.9rem;
    }
    
    .transfer-option__desc {
        font-size: 0.75rem;
    }
}
