/* ProgressSummarySection Component Styles */

.progress-summary-section {
    padding: 0;
    color: #372562;
}

.pss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pss-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #372562;
}

/* Create Button */
.btn-create-summary {
    padding: 0.5rem 1rem;
    border: none;
    background: #FDF0EF;
    color: #372562;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-create-summary:hover:not(:disabled) {
    background: #dcc5f0;
    transform: translateY(-1px);
}

.btn-create-summary:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* Loading State */
.pss-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.pss-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #97c1bc;
    border-radius: 50%;
    animation: pss-spin 1s linear infinite;
    margin: 0 auto 0.75rem;
}

@keyframes pss-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pss-loading p {
    margin: 0;
    font-size: 0.85rem;
    color: #372562;
}

/* Error State */
.pss-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

/* Summary List */
.pss-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pss-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #C8DDD8;
    border-radius: 8px;
    background: #F0F7F5;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pss-item:hover {
    border-color: #372562;
    background: #F0F7F5;
    box-shadow: 0 2px 6px rgba(91, 45, 142, 0.1);
}

.pss-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pss-term-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #372562;
}

.pss-date {
    font-size: 0.8rem;
    color: #666;
}

/* RAG Badges */
.pss-rag-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
}

.pss-rag-badge.rag-red {
    background: #f8d7da;
    color: #991b1b;
    border: 1px solid #f5c6cb;
}

.pss-rag-badge.rag-amber {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.pss-rag-badge.rag-green {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pss-rag-badge.rag- {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Empty State */
.pss-empty {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
    background: #F0F7F5;
    border: 1px dashed #C8DDD8;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 500px) {
    .pss-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .btn-create-summary {
        width: 100%;
        text-align: center;
    }
}
