/* Account Balance Cards */
.balance-card {
    perspective: 1000px;
    background-color: transparent;
    height: 200px;
}

.balance-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.balance-card:hover .balance-card-inner {
    transform: rotateY(180deg);
}

.balance-card-front,
.balance-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    padding: 1.5rem;
}

.balance-card-front {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-end) 100%);
    color: white;
}

.balance-card-back {
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--primary) 100%);
    color: white;
    transform: rotateY(180deg);
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.balance-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.account-number {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Card Icons */
.balance-card .card-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Card Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-good {
    background-color: #22c55e;
}

.status-warning {
    background-color: #f59e0b;
}

.status-alert {
    background-color: #ef4444;
}

/* Quick Action Cards */
.quick-action-card {
    background-color: #f8f9fa;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.quick-action-card:hover i,
.quick-action-card:hover h6 {
    color: white !important;
}

/* Spending Categories */
.spending-category .progress {
    border-radius: 50px;
    background-color: #f8f9fa;
}

.spending-category .progress-bar {
    border-radius: 50px;
}

/* Card Refinements */
.card {
    border-radius: 1rem;
}

.card-header {
    padding: 1.25rem;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
}

/* Table Refinements */
.table > :not(caption) > * > * {
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 109, 119, 0.05);
}

/* Monthly Summary Cards */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Notifications */
.list-group-item .bi {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 109, 119, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quick-action-card {
        padding: 1rem !important;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .table > :not(caption) > * > * {
        padding: 0.75rem;
    }
}