/* Main Styling for TDSDM Analytics Platform */

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Progress Steps */
.progress-container {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    margin-bottom: 20px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #6c757d;
}

.step.active .step-icon {
    background-color: #0d6efd;
    color: white;
}

.step.completed .step-icon {
    background-color: #198754;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

.step.completed .step-label {
    color: #198754;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 15px;
    position: relative;
    top: -20px;
    z-index: 0;
}

/* Card Styling */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    padding: 0.75rem 1.25rem;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

/* Table Styling */
.table th {
    font-weight: 600;
    color: #495057;
}

/* Alert Styling */
.alert {
    border-radius: 0.5rem;
}

/* Button Styling */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
}

/* Footer Styling */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Print Styles */
@media print {
    .navbar, .footer, .progress-container {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .step-icon {
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .step-connector {
        display: none;
    }
}