/**
 * Tutor Selection Styles
 */

/* Active Tutor Display in Header */
.sfpe-active-tutor {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0 15px;
}

.sfpe-tutor-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.sfpe-tutor-label {
    color: rgba(255, 255, 255, 0.7);
}

.sfpe-tutor-name {
    color: #fff;
    font-weight: 600;
}

.sfpe-tutor-switch {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfpe-tutor-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Tutor Selector Modal */
.sfpe-tutor-selector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.sfpe-tutor-selector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.sfpe-tutor-selector-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sfpe-tutor-selector-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sfpe-tutor-selector-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.sfpe-tutor-selector-close {
    background: transparent;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sfpe-tutor-selector-close:hover {
    background: #f5f5f5;
    color: #333;
}

.sfpe-tutor-selector-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Tutor Grid */
.sfpe-tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sfpe-tutor-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sfpe-tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #007cff;
}

.sfpe-tutor-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
}

.sfpe-tutor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfpe-tutor-card h4 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.sfpe-tutor-title {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.sfpe-tutor-description {
    margin: 0 0 15px;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

.sfpe-select-tutor-btn {
    background: #007cff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfpe-select-tutor-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Tutor-specific message styling */
.sfpe-chat-messages.tutor-michael_chen .assistant-message {
    border-left: 3px solid #4CAF50;
}

.sfpe-chat-messages.tutor-emma_rodriguez .assistant-message {
    border-left: 3px solid #FF6B6B;
}

.sfpe-chat-messages.tutor-david_thompson .assistant-message {
    border-left: 3px solid #4ECDC4;
}

.sfpe-chat-messages.tutor-raj_patel .assistant-message {
    border-left: 3px solid #FFE66D;
}

/* Tutor welcome message */
.sfpe-tutor-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
}

.sfpe-tutor-welcome .tutor-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sfpe-tutor-selector-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .sfpe-tutor-grid {
        grid-template-columns: 1fr;
    }
    
    .sfpe-active-tutor {
        padding: 0 10px;
    }
    
    .sfpe-tutor-info {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Body modal open state */
body.sfpe-modal-open {
    overflow: hidden;
}

/* Default tutor avatar */
.sfpe-tutor-avatar img[src*="default-tutor"] {
    padding: 20px;
    opacity: 0.5;
}

/* Tutor title in messages */
.sfpe-tutor-title {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    font-weight: normal;
}

/* Tutor avatar in messages */
.sfpe-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}