/* Billing Management Styles */

/* View Toggle */
.billing-view-toggle {
    max-width: 1200px;
    margin: 0 auto 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.billing-view-toggle-btn {
    padding: 12px 24px;
    background: #fff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.billing-view-toggle-btn:hover {
    border-color: #129ed9;
    color: #129ed9;
    transform: translateY(-1px);
}

.billing-view-toggle-btn.active {
    background: #129ed9;
    color: white;
    border-color: #129ed9;
}

.billing-view-toggle-btn.active:hover {
    background: #0d7ba3;
    border-color: #0d7ba3;
}

/* Manage Billing Container */
.manage-billing-container {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

/* Stripe Portal Card */
.stripe-portal-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.portal-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.portal-card-info {
    flex: 1;
    min-width: 280px;
}

.portal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.portal-icon {
    background: #eff6ff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-icon i {
    font-size: 18px;
    color: #3b82f6;
}

.portal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.portal-card-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.btn-stripe-portal {
    padding: 10px 20px;
    background: #129ed9;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-stripe-portal:hover {
    background: #0d7ba3;
    transform: translateY(-1px);
}

/* Quick Actions Grid - HIDDEN */
.billing-quick-actions {
    display: none !important;
}

.quick-action-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.action-icon i {
    font-size: 18px;
}

.action-icon-blue {
    background: #eff6ff;
}

.action-icon-blue i {
    color: #3b82f6;
}

.action-icon-yellow {
    background: #fef3c7;
}

.action-icon-yellow i {
    color: #f59e0b;
}

.action-icon-green {
    background: #f0fdf4;
}

.action-icon-green i {
    color: #10b981;
}

.quick-action-card h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.quick-action-card p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* Invoice History Container */
.invoice-history-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.invoice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-icon {
    background: #eff6ff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invoice-icon i {
    font-size: 18px;
    color: #3b82f6;
}

.invoice-title-section h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.invoice-title-section p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.btn-refresh-invoices {
    padding: 8px 16px;
    background: white;
    color: #129ed9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh-invoices:hover {
    border-color: #129ed9;
    background: #f0f9ff;
}

#invoicesList {
    margin-top: 0;
}

.invoice-loading {
    text-align: center;
    color: #6B7280;
    padding: 40px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .billing-view-toggle-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .stripe-portal-card {
        padding: 24px;
    }
    
    .portal-card-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-stripe-portal {
        width: 100%;
        justify-content: center;
    }
    
    .billing-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .invoice-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-refresh-invoices {
        width: 100%;
    }
}

