/* FreightVision.Client/wwwroot/css/billing.css */

.billing-container {
    padding: 20px;
    background: #f5f7fa;
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-header h3 {
    margin: 0;
    font-weight: 600;
}

.page-header i {
    margin-right: 10px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.trigger-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.billing-dialog-content {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

/* Toast Styling */
.e-toast-success {
    background-color: #28a745 !important;
    color: white !important;
}

.e-toast-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.e-toast-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Grid Styling */
.e-grid .e-headercell {
    background-color: #4a5568 !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
}

.e-grid .e-row:hover {
    background-color: #e6f3ff !important;
}

.e-grid .e-altrow {
    background-color: #f8f9fa;
}

.e-grid .e-selectionbackground {
    background-color: #cce5ff !important;
}

/* Dropdown Styling */
.e-dropdownbase .e-list-item.e-item-focus,
.e-dropdownbase .e-list-item.e-active {
    background-color: #e6f3ff !important;
    color: #333 !important;
}

/* Button Enhancements */
.e-btn.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-group-sm .e-btn {
    padding: 4px 8px;
    font-size: 0.875rem;
}

/* Tab Styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    background-color: transparent;
    font-weight: 600;
}

/* Badge Styling */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Payment Details Card */
.border-warning {
    border: 2px solid #ffc107 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .billing-container {
        padding: 10px;
    }

    .page-header h3 {
        font-size: 1.5rem;
    }

    .e-dialog .e-dlg-content {
        padding: 15px !important;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions */
.card,
.e-btn,
.nav-link,
.badge {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
.billing-dialog-content::-webkit-scrollbar {
    width: 8px;
}

.billing-dialog-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.billing-dialog-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.billing-dialog-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}