/* ========================================
   GreenStep Hub - Coordinator Survey Admin Styles
   ======================================== */

.cs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.cs-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
}

.cs-subtitle {
    color: var(--text-secondary, #64748b);
    font-size: 0.9rem;
    margin-top: 4px;
}

.cs-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Stats Cards */
.cs-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cs-stat-card {
    flex: 1;
    min-width: 120px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border, #e2e8f0);
}

.cs-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #059669;
}

.cs-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    margin-top: 4px;
}

/* Table */
.cs-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border, #e2e8f0);
    overflow: hidden;
}

.cs-table {
    width: 100%;
    border-collapse: collapse;
}

.cs-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.cs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.cs-table tbody tr:hover {
    background: #f0fdf4;
}

.cs-avg-badge {
    font-weight: 700;
    font-size: 1rem;
}

.cs-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.cs-action-btn:hover {
    background: #fee2e2;
}

/* Empty State */
.cs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.cs-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cs-empty h3 {
    font-size: 1.2rem;
    color: var(--text-primary, #1e293b);
    margin-bottom: 8px;
}

.cs-empty p {
    color: var(--text-secondary, #64748b);
    margin-bottom: 16px;
}

/* Detail Modal */
.cs-detail-info {
    margin-bottom: 20px;
}

.cs-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.cs-detail-row strong {
    color: var(--text-secondary, #64748b);
    font-weight: 500;
}

.cs-detail-ratings-section {
    margin-bottom: 20px;
}

.cs-detail-ratings-section h3 {
    font-size: 1rem;
    color: #059669;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d1fae5;
}

.cs-detail-rating {
    padding: 8px 0;
    border-bottom: 1px solid #f8fafc;
}

.cs-detail-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-detail-rating-label {
    font-weight: 500;
    color: var(--text-primary, #1e293b);
    font-size: 0.9rem;
}

.cs-detail-rating-value {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cs-detail-rating-comment {
    font-size: 0.82rem;
    color: var(--text-secondary, #64748b);
    margin-top: 4px;
    padding-right: 8px;
}

.cs-detail-section {
    margin-bottom: 16px;
}

.cs-detail-section h3 {
    font-size: 0.95rem;
    color: #059669;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #d1fae5;
}

.cs-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cs-tag {
    background: #ecfdf5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #a7f3d0;
}

.cs-detail-other {
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
    font-style: italic;
}

.cs-detail-comments {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
}

.cs-detail-comments p {
    color: var(--text-secondary, #64748b);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}
