/* Gift Card Styles - assets/css/giftcard.css */

/* Common Card Styles */
.giftcard-purchase-card,
.giftcard-reload-card,
.giftcard-balance-section,
.giftcard-pin-change-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.card-header h3 {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Form Controls */
.form-control:focus {
    border-color: #2c5aa0;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.monospace {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: 0.5px;
}

/* Summary Cards */
.purchase-summary,
.reload-summary {
    margin-top: 2rem;
}

.summary-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-card h6 {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-card .d-flex {
    margin-bottom: 0.5rem;
}

.summary-card hr {
    margin: 1rem 0;
    border-color: #dee2e6;
}

/* Button Styles */
.btn-primary {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
    transform: translateY(-1px);
}

.btn-loading {
    display: none;
}

/* Help Cards */
.help-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.help-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
}

.help-card h6 {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-card p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Security Tips */
.security-tips .alert {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #0c5460;
}

/* Balance Results */
.balance-display-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-overview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.overview-item {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overview-item .label {
    font-weight: 500;
    color: #495057;
}

.overview-item .value {
    font-weight: 600;
    color: #212529;
}

.overview-item .value.balance-amount {
    color: #28a745;
    font-size: 1.25rem;
}

/* Status Badges */
.badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

/* Quick Actions */
.quick-actions {
    margin: 2rem 0;
    text-align: center;
}

.quick-actions h5 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 150px;
}

/* Transaction History */
.transaction-history {
    margin-top: 2rem;
}

.transaction-history h5 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.transaction-list {
    max-height: 500px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.transaction-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e7f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.transaction-icon i {
    color: #2c5aa0;
    font-size: 1.2rem;
}

.transaction-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.transaction-main h6 {
    margin-bottom: 0.25rem;
    color: #212529;
    font-weight: 600;
}

.transaction-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.transaction-date {
    color: #adb5bd;
    font-size: 0.8rem;
}

.transaction-amount {
    text-align: right;
    flex-shrink: 0;
}

.transaction-amount .amount {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.transaction-amount .amount.credit {
    color: #28a745;
}

.transaction-amount .amount.debit {
    color: #dc3545;
}

.transaction-amount .balance {
    color: #6c757d;
    font-size: 0.8rem;
}

/* No Transactions */
.no-transactions {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-transactions i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .giftcard-purchase-card,
    .giftcard-reload-card,
    .giftcard-balance-section,
    .giftcard-pin-change-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .transaction-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .transaction-amount {
        text-align: left;
    }
    
    .overview-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* Balance Check Card Specific */
.balance-check-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.balance-results-section {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Gift Card Physical Delivery Styles */

#physicalDeliveryFields.d-none {
    display: none !important;
}

#printingFeeInfo.d-none {
    display: none !important;
}

/* Summary enhancements */
.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
}

.summary-card h6 {
    margin-bottom: 1rem;
    color: #495057;
}

.summary-card hr {
    margin: 0.75rem 0;
    opacity: 0.3;
}

/* Extra small mobile devices */
@media (max-width: 575.98px) {
    .giftcard-purchase-card, .giftcard-reload-card, .giftcard-balance-section, .giftcard-pin-change-card {
        padding: 0.9rem;
        margin: 0.1rem;
    }
    .card-header h3 {
        font-size: 20px;
    }
    .balance-check-card {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 15px;
    }
}