* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::-webkit-scrollbar,
*::-webkit-scrollbar-thumb {
  color: var(--color-accent3);
  background-color: var(--color-border);
  width: 8px;
  border-radius: 10px;
  background-clip: padding-box;

}


*::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 0 10px;
  border: 2px solid var(--color-border);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #2D1B69; /* Solid color matching modal - much faster than gradient */
    min-height: 100dvh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

/* User Controls */
.user-controls {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.15); /* More opaque, no backdrop-filter */
    border-radius: 15px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.config-section,
.uid-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 200px;
}

.config-section label,
.uid-section label {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    margin-bottom: 0;
}

.config-selector,
#user-uid {
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    width: 100%;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.config-selector {
    cursor: pointer;
}

.config-selector:focus,
#user-uid:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.config-selector option {
    background: #2D1B69;
    color: white;
    padding: 10px;
}

#user-uid::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.control-buttons {
    display: flex;
    gap: 10px;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Specific transitions */
    border: 2px solid transparent;
}

.btn-icon {
    font-size: 1.2rem;
}

.load-btn {
    background: rgba(52, 152, 219, 0.8);
    color: white;
    border-color: rgba(52, 152, 219, 0.3);
}

.load-btn:hover {
    background: rgba(52, 152, 219, 1);
    border-color: rgba(52, 152, 219, 0.8);
    /* Removed expensive transform and box-shadow */
}

.save-btn {
    background: rgba(46, 204, 113, 0.8);
    color: white;
    border-color: rgba(46, 204, 113, 0.3);
}

.save-btn:hover {
    background: rgba(46, 204, 113, 1);
    border-color: rgba(46, 204, 113, 0.8);
    /* Removed expensive transform and box-shadow */
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Empty State */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.add-new-btn {
    background: rgba(255, 255, 255, 0.15); /* More opaque, no backdrop-filter */
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 60px 80px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Specific transitions */
}

.add-new-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    /* Removed expensive transform and box-shadow */
}

.plus-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 2rem;
    font-weight: bold;
}

/* Rankings List */
.rankings-list {
    background: rgba(255, 255, 255, 0.98); /* More opaque, no backdrop-filter */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Simplified shadow */
}

/* Rankings Header with Tabs */
.rankings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.ranking-tabs {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease; /* Specific transitions */
    background: transparent;
    color: #666;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    /* Removed box-shadow for better performance */
}

.add-new-btn-small {
    display: flex;
    align-items: center;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease; /* Specific transition */
}

.add-new-btn-small:hover {
    background: #5a6fd8;
    /* Removed expensive transform and box-shadow */
}

/* Add New Section at the end of lists */
.add-new-section {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    margin-top: 20px;
    border-top: 2px dashed rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0 0 15px 15px;
}

.add-new-section .add-new-btn-small {
    padding: 15px 30px;
    font-size: 1.1rem;
    background: #667eea;
    border: 2px dashed #667eea;
    transition: background-color 0.2s ease, border-style 0.2s ease; /* Specific transitions */
}

.add-new-section .add-new-btn-small:hover {
    background: #5a6fd8; /* Slightly darker for hover effect */
    border-style: solid;
    /* Removed expensive transform and box-shadow */
}

/* Ranking Sections */
.ranking-section {
    display: block;
}

.ranking-section.hidden {
    display: none;
}

.section-description {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9ff; /* Solid color instead of gradient */
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.section-description p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    font-style: italic;
}

.rankings-container {
    display: grid;
    gap: 20px;
}

.ranking-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Simplified shadow */
    transition: background-color 0.2s ease; /* Specific transition */
    border-left: 5px solid #667eea;
    cursor: pointer;
}

.ranking-item:hover {
    background: #fafafa; /* Simple background change instead of expensive effects */
}

.ranking-item.expanded {
    cursor: default;
}

.ranking-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.ranking-position {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-right: 20px;
    min-width: 60px;
}

.ranking-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #f0f0f0;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.ranking-score {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
}

.ranking-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    display: none;
}

.ranking-item.expanded .ranking-details {
    display: block;
}

/* Performance Optimized Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5); /* Replace backdrop-filter with simple background */
}

.modal-content {
    background: rgba(45, 27, 105, 0.95); /* Slightly more opaque */
    border-radius: 20px;
    width: 95%;
    max-width: 1200px; /* Increased for two-column layout */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); /* Simplified shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: white;
}

.add-form {
    padding: 10px 15px;
}

.form-layout {
    display: flex;
    flex-direction: column;
    height: 70vh; /* Set a fixed height for the form */
}

.form-wrapper {
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Allow scrolling if content is too long */
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px; /* Reduced margin */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

/* Optimize form inputs - remove backdrop-filter */
.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 16px; /* Reduced padding */
    border: none;
    border-radius: 12px; /* Slightly smaller radius */
    font-size: 0.95rem; /* Slightly smaller font */
    background: rgba(255, 255, 255, 0.15); /* More opaque, no backdrop-filter */
    color: white;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Specific transitions */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group input[type="text"]:focus,
.form-group input[type="file"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Simplified shadow */
}

.form-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.photo-preview {
    margin-top: 12px; /* Reduced margin */
    text-align: center;
}

.photo-preview img {
    max-width: 150px; /* Smaller preview */
    max-height: 150px; /* Smaller preview */
    border-radius: 12px; /* Smaller radius */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* Smaller shadow */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Questions Container - Updated styling */
.questions-container {
    margin-bottom: 30px;
}

.chapter {
    margin-bottom: 20px;
}

/* Chapter content with two-column layout for questions */
.chapter-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Single column on smaller screens */
@media (max-width: 1024px) {
    .chapter-questions {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Optimize chapter titles - remove backdrop-filter */
.chapter-title {
    color: white;
    font-size: 1.3rem; /* Slightly smaller */
    font-weight: 600;
    margin-bottom: 15px; /* Reduced margin */
    text-align: center;
    padding: 12px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.15); /* More opaque, no backdrop-filter */
    border-radius: 12px; /* Slightly smaller radius */
}

/* Optimize question groups - remove backdrop-filter */
.question-group {
    margin-bottom: 18px; /* Reduced margin */
    padding: 18px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.12); /* More opaque, no backdrop-filter */
    border-radius: 15px; /* Slightly smaller radius */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-title {
    font-size: 1rem; /* Slightly smaller */
    font-weight: 600;
    margin-bottom: 12px; /* Reduced margin */
    color: white;
}

/* Slider Styles - Updated for dark theme */
.slider-container {
    margin-bottom: 12px; /* Reduced margin */
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Optimize slider value - remove backdrop-filter */
.slider-value {
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 1.3rem; /* Slightly smaller */
    margin-bottom: 8px; /* Reduced margin */
    background: rgba(255, 255, 255, 0.15); /* More opaque, no backdrop-filter */
    border-radius: 8px; /* Smaller radius */
    padding: 8px; /* Reduced padding */
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem; /* Slightly smaller */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px; /* Reduced margin */
}

/* Radio Styles - Updated for dark theme */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced gap */
}

/* Optimize radio options - remove backdrop-filter */
.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.12); /* More opaque, no backdrop-filter */
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Slightly smaller radius */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Specific transitions */
}

.radio-option:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.18);
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.1);
    accent-color: white;
}

.radio-option label {
    color: white;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.radio-option.selected {
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1); /* Simplified shadow */
}

/* Checkbox for "One in the world" - Updated styling */
.special-checkbox {
    display: flex;
    align-items: center;
    margin-top: 12px; /* Reduced margin */
    padding: 12px 16px; /* Reduced padding */
    background: rgba(255, 215, 0, 0.25); /* More opaque, no backdrop-filter */
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px; /* Slightly smaller radius */
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Specific transitions */
    user-select: none;
}

.special-checkbox:hover {
    background: rgba(255, 215, 0, 0.35);
    border-color: rgba(255, 215, 0, 0.6);
}

.special-checkbox.checked {
    background: rgba(255, 215, 0, 0.45);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2); /* Simplified shadow */
}

.special-checkbox input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.1);
    pointer-events: none;
    accent-color: #FFD700;
}

.special-checkbox label {
    font-weight: 600;
    color: #FFD700;
    cursor: pointer;
    margin: 0;
    pointer-events: none;
}

.special-checkbox.checked label {
    color: #FFF;
}

/* Form Actions - Updated styling */
.form-actions {
    flex: 0 0 auto; /* Take only needed space */
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 15px;
    padding: 10px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optimize buttons - remove backdrop-filter */
.btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); /* Simplified shadow */
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Drag and Drop Styles */
.sortable {
    min-height: 100px;
}

.ranking-item.dragging {
    opacity: 0.5;
    transform: rotate(0deg);
    z-index: 1000;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.ranking-item.drag-over {
    margin-bottom: 120px; /* Create space for drop zone */
}

.ranking-item.subjective {
    cursor: grab;
    position: relative;
    transition: margin 0.3s ease;
}

.ranking-item.subjective:active {
    cursor: grabbing;
}

.ranking-item.subjective::before {
    content: "⋮⋮";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 1.2rem;
    line-height: 0.8;
    letter-spacing: -2px;
    pointer-events: none;
}

.ranking-item.subjective:hover::before {
    color: #667eea;
}

.ranking-item.subjective .ranking-header {
    padding-left: 25px;
}

/* Subjective ranking position styling */
.subjective .ranking-position {
    background: #667eea; /* Solid color instead of gradient */
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* Removed box-shadow for better performance */
}

/* Drop zone placeholder */
.drop-zone {
    height: 100px;
    margin: 10px 0;
    border: 3px dashed #667eea;
    border-radius: 15px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.drop-zone.active {
    opacity: 1;
    animation: pulse 2s infinite;
}

.drop-zone::before {
    content: "Drop here";
    position: absolute;
}

@keyframes pulse {
    0% { background: rgba(102, 126, 234, 0.1); }
    50% { background: rgba(102, 126, 234, 0.2); }
    100% { background: rgba(102, 126, 234, 0.1); }
}

/* Skeleton preview */
.drag-skeleton {
    background: rgba(102, 126, 234, 0.1);
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 100px;
    pointer-events: none;
}

.drag-skeleton.active {
    opacity: 1;
}

.drag-skeleton::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.drag-skeleton::after {
    content: "";
    position: absolute;
    left: 90px;
    top: 30px;
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.drag-skeleton .skeleton-content {
    margin-left: 190px;
    padding-top: 20px;
    pointer-events: none;
}

.drag-skeleton .skeleton-line {
    height: 20px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    animation: skeleton-loading 1.5s infinite;
    pointer-events: none;
}

.drag-skeleton .skeleton-line.short {
    width: 60%;
}

.drag-skeleton .skeleton-line.long {
    width: 80%;
}

@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Score difference indicator for subjective ranking */
.score-difference {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.score-difference.positive {
    background: #d4edda;
    color: #155724;
}

.score-difference.negative {
    background: #f8d7da;
    color: #721c24;
}

.score-difference.neutral {
    background: #e2e3e5;
    color: #495057;
}

/* Ranking actions and other existing styles */
.ranking-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.btn-edit, .btn-delete, .btn-save, .btn-cancel-edit {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
    /* Removed transform for better performance */
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    /* Removed transform for better performance */
}

.btn-save {
    background: #28a745;
    color: white;
}

.btn-save:hover {
    background: #218838;
    /* Removed transform for better performance */
}

.btn-cancel-edit {
    background: #6c757d;
    color: white;
}

.btn-cancel-edit:hover {
    background: #5a6268;
    /* Removed transform for better performance */
}

.score-breakdown {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.chapter-breakdown {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.chapter-breakdown h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.question-breakdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.question-breakdown:last-child {
    border-bottom: none;
}

.question-text {
    flex: 1;
    font-size: 0.9rem;
    color: #666;
}

.question-value {
    font-weight: 600;
    color: #333;
    margin: 0 10px;
}

.question-score {
    font-weight: 600;
    color: #667eea;
    min-width: 60px;
    text-align: right;
}

.question-score.positive {
    color: #28a745;
}

.question-score.negative {
    color: #dc3545;
}

.total-score-display {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Edit mode styles */
.ranking-item.edit-mode .question-breakdown {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #e9ecef;
}

.ranking-item.edit-mode .question-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.edit-slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.edit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.edit-slider-value {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.edit-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-radio-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-radio-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.edit-radio-option.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.edit-radio-option input[type="radio"] {
    margin-right: 10px;
}

.edit-special-checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-special-checkbox:hover {
    background: #fff1b3;
    border-color: #fdcb6e;
}

.edit-special-checkbox.checked {
    background: #d4edda;
    border-color: #28a745;
}

.edit-special-checkbox input[type="checkbox"] {
    margin-right: 8px;
    pointer-events: none;
}

.edit-special-checkbox label {
    font-weight: 600;
    color: #856404;
    cursor: pointer;
    margin: 0;
    pointer-events: none;
}

.edit-special-checkbox.checked label {
    color: #155724;
}

/* Error message styling */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
/* Modal responsive adjustments */
@media (max-width: 1200px) {
    .modal-content {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
    }
    
    .add-form {
        padding: 20px;
    }
    
    .form-layout {
        height: 80vh;
    }
    
    .user-controls {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .config-section,
    .uid-section {
        width: 100%;
        max-width: 300px;
        align-items: center;
    }
    
    .config-selector,
    #user-uid {
        min-width: 250px;
        max-width: 300px;
    }
} 