/* DM Evaluation Panel Styles */
.evaluation-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.evaluation-settings,
.evaluation-metrics,
.evaluation-history {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.evaluation-settings h3,
.evaluation-metrics h3,
.evaluation-history h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.setting-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Responsive design for evaluation UI */
@media (max-width: 768px) {
    .evaluation-container {
        padding: 1rem;
    }
    
    .evaluation-settings,
    .evaluation-metrics,
    .evaluation-history {
        padding: 1rem;
    }
    
    .setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.evaluation-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.evaluation-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background-color: #7c3aed;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    color: #e5e7eb;
    font-weight: 500;
}

.evaluation-stats {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #a78bfa;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #d1d5db;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evaluation-categories {
    margin-bottom: 2rem;
}

.category-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 4px solid #7c3aed;
}

.category-name {
    font-weight: 500;
    color: #e5e7eb;
}

.category-value {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-bar {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-text {
    font-weight: bold;
    color: #a78bfa;
    min-width: 40px;
    text-align: right;
}

.recent-evaluations h3 {
    color: #e5e7eb;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.evaluations-list {
    max-height: 300px;
    overflow-y: auto;
}

.evaluation-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid #7c3aed;
}

.evaluation-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.evaluation-score {
    font-weight: bold;
    color: #a78bfa;
}

.evaluation-time {
    color: #9ca3af;
    font-size: 0.875rem;
}

.evaluation-preview {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.evaluation-suggestions {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #fbbf24;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .evaluation-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-score {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-value {
        width: 100%;
        justify-content: space-between;
    }
}
