.ffi-calculator-container,
.ffi-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.progress-circle {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.progress-circle canvas {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-text .percentage {
    font-size: 24px;
    font-weight: bold;
    display: block;
    color: #2c3e50;
}

.ffi-table {
    width: 100%;
    border-collapse: collapse;
}

.ffi-table th,
.ffi-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.ffi-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.35rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.card-header h3,
.card-header h5 {
    margin: 0;
    color: #4e73df;
    font-weight: 600;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    border: none;
}

.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Progress bar styles */
.progress {
    height: 20px;
    background-color: #eaecf4;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: #4e73df;
    line-height: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 0.6s ease;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Form styles */
.form-select, .form-control {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus, .form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ffi-calculator-container,
    .ffi-dashboard-container {
        padding: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .progress-text .percentage {
        font-size: 18px;
    }
}

/* Loading spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Text colors for better readability */
.text-success {
    color: #1cc88a !important;
}

.text-primary {
    color: #4e73df !important;
}

.text-warning {
    color: #f6c23e !important;
}

.text-info {
    color: #36b9cc !important;
}

/* Background colors for badges */
.bg-success {
    background-color: #1cc88a !important;
}

.bg-primary {
    background-color: #4e73df !important;
}

.bg-warning {
    background-color: #f6c23e !important;
}

.bg-info {
    background-color: #36b9cc !important;
}

.bg-secondary {
    background-color: #858796 !important;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}