/* Animation Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

/* Progress Bar */
.progress-bar-outer {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar-inner {
    height: 100%;
    background-color: #007bff;
    transition: width 0.5s ease-out;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

/* Input Section */
.input-section {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.input-textarea {
    width: 100%;
    min-height: 200px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background-color: #fff;
    border: 1px solid #ddd;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Score Cards */
.score-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-card {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

/* Tab Navigation */
.tab-button {
    padding: 10px 20px;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

.tab-button.active {
    background-color: #007bff;
    color: #fff;
}

.tab-button:not(.active) {
    background-color: #fff;
    color: #007bff;
}

/* Tab Content */
.tab-content {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Analysis Lists */
.analysis-section {
    margin-top: 20px;
}

.analysis-section h4 {
    margin-bottom: 10px;
}

.analysis-list {
    margin: 0;
    padding-left: 20px;
}