/* Pay Bills Page Styles */
.bills-section{
    margin-bottom: 40px;
}

.bills-hero {
    background: linear-gradient(rgba(66, 153, 225, 0.1), rgba(66, 153, 225, 0.2));
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.bills-hero h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.bills-hero p {
    color: var(--text-light);
    font-size: 18px;
}

/* Summary Card Styles */
.summary-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 20px;
}

.balance-info, .due-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.balance-info .amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.pay-full-btn, .setup-plan-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pay-full-btn {
    background: var(--primary-color);
    color: white;
}

.pay-full-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.setup-plan-btn {
    background: #f7fafc;
    color: var(--text-dark);
}

.setup-plan-btn:hover {
    background: #edf2f7;
}

/* Bills Container Styles */
.bills-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.bills-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bills-filter select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    width: 100px;
}

/* Bill Card Styles */
.bill-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.bill-card:hover {
    background: #f7fafc;
    transform: translateX(5px);
}

.bill-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.bill-date {
    color: var(--text-light);
    font-size: 14px;
}

.bill-type {
    font-weight: 500;
}

.bill-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.bill-status.unpaid {
    background: #fed7d7;
    color: #e53e3e;
}

.bill-status.paid {
    background: #c6f6d5;
    color: #38a169;
}

.bill-amount {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bill-amount .amount {
    font-weight: bold;
    font-size: 18px;
}

.pay-btn, .view-btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pay-btn {
    background: var(--primary-color);
    color: white;
}

.pay-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.view-btn {
    background: #edf2f7;
    color: var(--text-dark);
}

.view-btn:hover {
    background: #e2e8f0;
}

/* Payment Methods Styles */
.payment-methods {
    margin-top: 30px;
}

.payment-methods h3 {
    margin-bottom: 20px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.payment-card:hover {
    background: #f7fafc;
}

.payment-card.active {
    border-color: var(--primary-color);
}

.payment-card i {
    font-size: 24px;
    margin-right: 15px;
}

.payment-card .fa-cc-visa {
    color: #1a1f71;
}

.payment-card .fa-cc-mastercard {
    color: #eb001b;
}

.card-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.default-badge {
    background: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.add-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    background: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.add-card-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .bills-hero {
        padding: 40px 0;
    }

    .bills-hero h1 {
        font-size: 28px;
    }

    .bill-info {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .bill-amount {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* Trigger Button Style */
.modal-trigger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px;
}

.modal-trigger-btn:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    color: #fff;
}

.modal-trigger-btn i {
    font-size: 14px;
}

/* Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

input[type="text"]:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-container input {
    margin-right: 10px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #3182ce;
}

/* Modal Styles with Smooth Animation */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out;
}

.payment-modal.active {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
}

.payment-modal.active .modal-content {
    opacity: 1;
    transform: translateY(0);
}

/* Close Button Animation */
.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #2b6cb0;
    transform: translateY(-1px);
}

/* Checkbox Style */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

@media (max-width: 576px) {
    .modal-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}