/* Accounts Banking Page - Retail Banking Style */

.accounts-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.page-subtitle {
    color: #6c757d;
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
}

/* Account Selection */
.account-selection-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-selector-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.account-dropdown {
    width: 100%;
}

.account-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.account-info {
    display: flex;
    flex-direction: column;
}

.account-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.account-number {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.account-balance .balance-amount {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1rem;
}

/* Selected Account Details */
.selected-account-section {
    margin-bottom: 2rem;
}

.account-details-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.account-header {
    background: linear-gradient(135deg, #f8c146 0%, #f39c12 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-header .account-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.account-header .account-type {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.account-header .balance-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.account-header .balance-amount {
    font-size: 2rem;
    font-weight: 700;
}

.available-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.credit-label {
    display: block;
    opacity: 0.8;
}

.credit-amount {
    font-weight: 600;
}

/* Account Actions */
.account-actions {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.primary-actions .btn {
    background: #f8c146;
    border-color: #f8c146;
    color: #2c3e50;
    font-weight: 600;
}

.primary-actions .btn:hover {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
}

/* Account Info Tabs */
.account-info-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.info-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.tab-button.active {
    color: #f8c146;
    border-bottom-color: #f8c146;
    background: white;
}

.tab-content {
    padding: 2rem;
}

/* Transactions Tab */
.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.transactions-header h3 {
    margin: 0;
    color: #2c3e50;
}

.transaction-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.date-separator {
    color: #6c757d;
    font-weight: 500;
}

.transactions-table-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.amount-credit {
    color: #28a745;
    font-weight: 600;
}

.amount-debit {
    color: #dc3545;
    font-weight: 600;
}

/* Account Details Tab */
.account-details-tab {
    max-width: 600px;
}

.detail-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #f8c146;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.detail-value {
    color: #6c757d;
    font-family: 'Courier New', monospace;
    flex: 2;
    text-align: right;
    margin-right: 1rem;
}

.detail-item .btn-link {
    color: #f8c146;
    text-decoration: none;
    padding: 0.25rem;
}

.detail-item .btn-link:hover {
    color: #f39c12;
}

/* Statements Tab */
.statements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.statements-header h4 {
    margin: 0;
    color: #2c3e50;
}

.statement-filters select {
    min-width: 150px;
}

.statements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.statement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #f8c146;
}

.statement-info {
    display: flex;
    flex-direction: column;
}

.statement-period {
    font-weight: 600;
    color: #2c3e50;
}

.statement-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.statement-actions {
    display: flex;
    gap: 0.5rem;
}

/* No Data Messages */
.no-account-selected,
.no-transactions-message,
.no-statements-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.no-data-icon {
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-account-selected h3,
.no-transactions-message h4,
.no-statements-message h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .accounts-page {
        padding: 1rem;
    }
    
    .account-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .action-group {
        justify-content: center;
    }
    
    .info-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    
    .transactions-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .transaction-filters {
        justify-content: center;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    
    .detail-value {
        text-align: left;
        margin-right: 0;
        margin-top: 0.5rem;
    }
    
    .statement-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .statement-actions {
        justify-content: center;
    }
}

/* Corporate DatePicker Styling */
.corporate-datepicker .e-input-group {
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.corporate-datepicker .e-input-group:hover {
    border-color: #f1c40f;
}

.corporate-datepicker .e-input-group.e-input-focus {
    border-color: #f1c40f;
    box-shadow: 0 0 0 0.2rem rgba(241, 196, 15, 0.25);
}

.corporate-datepicker .e-input {
    padding: 0.75rem;
    font-size: 0.95rem;
    color: #2c3e50;
}

.corporate-datepicker .e-input::placeholder {
    color: #6c757d;
}

.corporate-datepicker .e-date-icon {
    color: #f1c40f;
}

.corporate-datepicker .e-date-icon:hover {
    color: #d4ac0d;
}

/* Date filter container styling */
.transaction-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-separator {
    color: #6c757d;
    font-weight: 500;
    margin: 0 0.5rem;
}

/* Deposit Account Actions */
.deposit-account-actions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.action-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.action-group:last-child {
    margin-bottom: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.action-btn i {
    font-size: 1.1rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.primary-actions .btn-primary {
    background-color: #f1c40f;
    border-color: #f1c40f;
    color: #2c3e50;
}

.primary-actions .btn-primary:hover {
    background-color: #d4ac0d;
    border-color: #d4ac0d;
    color: #2c3e50;
}

.secondary-actions .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.secondary-actions .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Available Balance Styling */
.available-balance {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.available-label {
    color: #6c757d;
    margin-right: 0.5rem;
}

.available-amount {
    color: #28a745;
    font-weight: 600;
}

/* Responsive Design for Actions */
@media (max-width: 768px) {
    .action-group {
        flex-direction: column;
    }

    .action-btn {
        min-width: 100%;
    }
}
