/* =====================
   Bank Accounts Styles
   ===================== */

.account-card {
    background: #1f2937;
    border-radius: 12px;
    padding: 2rem;
    color: #e5e7eb;
    border: 1px solid #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.account-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    padding: 2px;
}

.card-chip::before {
    content: "";
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.card-chip::after {
    content: "";
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.account-type {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.account-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.account-balance {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.balance-amount {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.account-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.detail {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.3rem;
}

.detail-text {
    font-size: 1rem;
    font-weight: 600;
}

.account-actions {
    display: flex;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.account-actions .btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    justify-content: center;
}

.account-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.account-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* =====================
   Transaction Types
   ===================== */

.transaction-type {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.transaction-type.deposit {
    background: #d4edda;
    color: #155724;
}

.transaction-type.withdrawal {
    background: #f8d7da;
    color: #721c24;
}

/* =====================
   Transaction Action Buttons
   ===================== */

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-buttons .btn-icon {
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-buttons .btn-edit {
    background: #1e3a5f;
    color: #3b82f6;
    border: 1px solid #2d4a6f;
}

.action-buttons .btn-edit:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.action-buttons .btn-delete {
    background: #3b1a1a;
    color: #ef4444;
    border: 1px solid #5a2d2d;
}

.action-buttons .btn-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.action-buttons .btn-icon .material-symbols-outlined {
    font-size: 1.1rem;
}

/* =====================
   Transaction Status Labels
   ===================== */

.txn-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.updated-label {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.deleted-label {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* =====================
   Deleted Row Styles
   ===================== */

.row-deleted {
    opacity: 0.4;
    text-decoration: line-through;
    pointer-events: none;
}

.row-deleted td {
    color: #6b7280 !important;
}

.row-deleted .action-buttons {
    pointer-events: none;
}

/* Fade-out animation when deleting */
.row-deleting {
    animation: fadeOutRow 0.6s ease forwards;
}

@keyframes fadeOutRow {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0.4;
        transform: scale(0.98);
    }
}

/* =====================
   Responsive Design
   ===================== */

@media (max-width: 768px) {
    .account-card {
        padding: 1.5rem;
    }

    .account-details {
        grid-template-columns: 1fr;
    }

    .account-actions {
        flex-direction: column;
    }

    .account-actions .btn {
        width: 100%;
    }
}
