/* Teacher Interview Page Styles */
#teacher-interview-page {
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    background-color: #f8f9fa;
}

/* Header Styles */
.interview-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #8b0628 0%, #6a041a 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(139, 6, 40, 0.3);
}

.interview-page-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.interview-page-header .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.interview-page-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Main Content Row */
.interview-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 600px;
}

/* Section Main Titles */
.section-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-right: 5px solid #8b0628;
    box-shadow: 0 2px 10px rgba(139, 6, 40, 0.1);
}

/* Details Section */
.details-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

.details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.section-icon {
    font-size: 1.3rem;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item-full {
    display: flex;
    flex-direction: column;
    gap: 5px;
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.detail-value {
    color: #212529;
    font-weight: 500;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    min-height: 20px;
}

.detail-value a {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* Questions Section */
.questions-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.question-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #8b0628;
}

.question-header {
    margin-bottom: 15px;
}

.question-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.question-number {
    background: linear-gradient(135deg, #8b0628 0%, #6a041a 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.question-purpose {
    display: inline-block;
    background: linear-gradient(135deg, #f7bf00 0%, #d4a600 100%);
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 10px;
}

.question-answer textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.question-answer textarea:focus {
    outline: none;
    border-color: #8b0628;
    box-shadow: 0 0 0 3px rgba(139, 6, 40, 0.1);
}

.question-answer textarea[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Form Actions */
.form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.btn-primary {
    background: linear-gradient(135deg, #8b0628 0%, #6a041a 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 6, 40, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 6, 40, 0.4);
}

.completed-message {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7bf00 0%, #d4a600 100%);
    color: #333;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.completed-message p {
    margin: 0;
}

/* Custom Scrollbar */
.details-section::-webkit-scrollbar,
.questions-section::-webkit-scrollbar {
    width: 8px;
}

.details-section::-webkit-scrollbar-track,
.questions-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.details-section::-webkit-scrollbar-thumb,
.questions-section::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b0628 0%, #6a041a 100%);
    border-radius: 10px;
}

.details-section::-webkit-scrollbar-thumb:hover,
.questions-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a00732 0%, #7b0525 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .interview-content-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .details-section,
    .questions-section {
        max-height: none;
    }
}

@media (max-width: 768px) {
    #teacher-interview-page {
        padding: 15px;
    }
    
    .interview-page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .section-content {
        grid-template-columns: 1fr;
    }
    
    .question-title {
        flex-direction: column;
        gap: 8px;
    }
    
    .question-number {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .details-section,
    .questions-section {
        padding: 15px;
    }
    
    .detail-section,
    .question-item {
        padding: 15px;
    }
}