/* Account Balance Manager - Frontend Styles */

.abm-frontend-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Summary Cards */
.abm-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.abm-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 28px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.abm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.abm-card-balance {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.abm-card-withdrawals {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

.abm-card-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.abm-icon {
    width: 36px;
    height: 36px;
    opacity: 0.9;
}

.abm-card-value {
    font-size: 40px;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

/* Section */
.abm-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.abm-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #e2e8f0;
}

/* Tables */
.abm-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
}

.abm-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.abm-table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-weight: 700;
    text-align: right;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abm-table tbody td {
    padding: 16px 20px;
    text-align: right;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.abm-table tbody tr {
    transition: background-color 0.2s ease;
}

.abm-table tbody tr:hover {
    background: #f8fafc;
}

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

.abm-date-col {
    color: #64748b;
    font-size: 14px;
}

.abm-amount {
    font-weight: 700;
    font-size: 16px;
}

.abm-amount-deposit {
    color: #10b981;
}

.abm-amount-withdrawal {
    color: #ef4444;
}

.abm-balance {
    font-weight: 700;
    font-size: 17px;
}

.abm-balance-positive {
    color: #10b981;
}

.abm-balance-negative {
    color: #ef4444;
}

/* Form */
.abm-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.abm-form-group {
    margin-bottom: 24px;
}

.abm-form-group label {
    display: block;
    font-weight: 700;
    color: #475569;
    margin-bottom: 10px;
    font-size: 15px;
}

.abm-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.abm-form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.abm-form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.abm-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.abm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.abm-btn-icon {
    width: 20px;
    height: 20px;
}

.abm-btn-deposit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.abm-btn-deposit:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.abm-btn-withdrawal {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.abm-btn-withdrawal:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Messages */
.abm-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
}

.abm-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.abm-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
    .abm-frontend-wrap {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .abm-summary-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .abm-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .abm-section h2 {
        font-size: 20px;
    }
    
    .abm-form-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .abm-card-value {
        font-size: 32px;
    }
    
    .abm-table thead th,
    .abm-table tbody td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .abm-card {
        padding: 20px;
    }
    
    .abm-card-value {
        font-size: 28px;
    }
    
    .abm-table thead th,
    .abm-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
