/* EDITOR-SPECIFIC EXTENSIONS */
/* This file extends the main styles with editor-specific classes */

/* Question item styling */
.question-item {
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.question-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.question-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.question-item:hover::before {
    transform: scaleX(1);
}

/* Answer option styling for editor forms */
.answer-option-container {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

.answer-option-container:hover {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
}

.answer-option-container label {
    display: block;
    font-weight: 500;
    color: #475569;
    font-size: 0.875rem;
}

.answer-option-container textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
}

/* Details content animations */
.details-content {
    transition: max-height 0.3s ease-in-out;
    margin-top: 1rem;
}

.details-correct-option {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.9), rgba(220, 252, 231, 0.9));
    backdrop-filter: blur(10px);
    border-color: #10b981;
    color: #047857;
    border-width: 2px;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

/* Editor action buttons */
.edit-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.edit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.edit-btn:hover::before {
    left: 100%;
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.delete-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.delete-btn:hover::before {
    left: 100%;
}

/* File input overrides for editor */
.file-input-container input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Content centering utility */
.content-center {
    display: flex;
    align-items: center;
}

/* Whitespace utility */
.whitespace-nowrap {
    white-space: nowrap;
}