/* ============================================
   TRANSACTIONS.CSS - Professional Transaction Page
   Royal Blue Theme
   ============================================ */

/* Page Header */
.transactions-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.transactions-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.transactions-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.transactions-header-title h3 {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.transactions-header-title p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.transactions-header-badge {
    background: white;
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Filter Card */
.filter-card {
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}

.filter-card-header {
    padding: 16px 24px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-card-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-card-header h6 i {
    color: var(--primary);
}

.filter-toggle-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.filter-card-body {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* Dashboard Row & Col (2x2 Layout) */
.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.dashboard-col-6 {
    width: 50%;
    padding: 0 8px;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

/* Background Colors */
.bg-primary-soft { background: var(--primary-soft); }
.bg-success-soft { background: var(--success-soft); }
.bg-danger-soft { background: var(--danger-soft); }
.bg-info-soft { background: var(--info-soft); }
.bg-warning-soft { background: var(--warning-soft); }
.bg-secondary-soft { background: rgba(100, 116, 139, 0.1); }

/* Table Styles */
.transactions-table-wrapper {
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    padding: 16px 20px;
    background: var(--bg-secondary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.transactions-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.transactions-table tr:hover td {
    background: var(--bg-secondary);
    cursor: pointer;
}

/* Badges */
.badge-credit {
    background: var(--success-soft);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-debit {
    background: var(--danger-soft);
    color: var(--danger);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-wallet {
    background: var(--secondary-soft);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-remark {
    background: var(--info-soft);
    color: var(--info);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;  /* inline-block ki jagah inline-flex */
    align-items: center;    /* vertical center ke liye */
    justify-content: center; /* horizontal center ke liye */
}

.badge-remark:hover {
    background: var(--info);
    color: white;
}

/* TRX Code */
.trx-code {
    font-family: monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Amount Styles */
.amount-credit {
    color: var(--success);
    font-weight: 600;
}

.amount-debit {
    color: var(--danger);
    font-weight: 600;
}

/* Details Row */
.details-row {
    background: var(--bg-secondary);
}

.details-row td {
    padding: 20px !important;
    background: var(--bg-secondary);
}

.details-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

/* Mobile Card View */
.mobile-transaction-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mobile-transaction-card:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.mobile-transaction-card.active {
    border-left: 3px solid var(--primary);
}

.mobile-card-body {
    padding: 16px;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-amount {
    font-size: 18px;
    font-weight: 700;
}

.mobile-expand-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.mobile-transaction-card.active .mobile-expand-icon {
    transform: rotate(180deg);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

.empty-state h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Pagination */
.pagination-wrapper {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .transactions-header {
        padding: 20px;
    }
    .transactions-header-title h3 {
        font-size: 22px;
    }
    .dashboard-col-6 {
        width: 100%;
        margin-bottom: 12px;
    }
    .dashboard-row {
        flex-direction: column;
    }
    .filter-card-header {
        padding: 12px 16px;
    }
    .filter-card-body {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .transactions-header-title h3 {
        font-size: 18px;
    }
    .transactions-header-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    .mobile-amount {
        font-size: 16px;
    }
    .trx-code {
        font-size: 11px;
    }
}