/* Control Panel Styles */

/* Personas Header and Controls */
.personas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.personas-header h2 {
    margin: 0;
    color: #2c3e50;
}

.persona-controls {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    min-width: 350px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Control Tabs */
.control-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 2px;
}

.control-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.control-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.control-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Similarity Control */
.similarity-control {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.similarity-control label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.similarity-control input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

.similarity-control span {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

/* Target Control */
.target-control {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.target-control label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.target-control input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
}

.target-control input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Priority Control Styles */
.priority-control {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.priority-control h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.priority-control p {
    margin: 0 0 20px 0;
    color: #6c757d;
    font-size: 14px;
}

.priority-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.priority-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.priority-section h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.priority-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
}

.priority-item input[type="checkbox"],
.priority-item input[type="radio"] {
    margin: 0;
    transform: scale(1.1);
}

.priority-item label {
    flex: 1;
    margin: 0;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

.priority-item.fixed label {
    color: #6c757d;
    cursor: default;
}

.weight-indicator {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.priority-item.fixed .weight-indicator {
    background: #d4edda;
    color: #155724;
}

.priority-control .btn-primary {
    width: 100%;
    margin-top: 15px;
}

/* Threshold Guide */
.threshold-guide {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.threshold-guide small {
    display: block;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.threshold-guide strong {
    color: #495057;
}

/* Persona Container */
.personas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .personas-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .persona-controls {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .control-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .control-tab {
        text-align: center;
    }
    
    .personas-container {
        grid-template-columns: 1fr;
    }
    
    .priority-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .weight-indicator {
        align-self: flex-end;
    }
}