/* Teacher Settings Dropdown Panel */
.chat-settings-panel {
    position: fixed;
    z-index: 1000;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.chat-settings-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chat-settings-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-header);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-settings-header h5 i {
    color: var(--primary);
}

.chat-settings-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    display: flex;
}

.chat-settings-close:hover {
    color: var(--error);
}

.chat-settings-scroll {
    max-height: 450px;
    overflow-y: auto;
    padding: 1.25rem;
}

.chat-settings-group {
    margin-bottom: 1.25rem;
}

.chat-settings-group:last-child {
    margin-bottom: 0;
}

.chat-settings-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-settings-group label i {
    width: 14px;
    text-align: center;
}

.chat-settings-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-base);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.chat-settings-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Teaching Personality Mode Grid */
.mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.mode-option {
    padding: 12px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-base);
    background: var(--bg-surface);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.mode-option:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

.mode-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(192, 132, 46, 0.2);
}

.chat-settings-footer {
    padding: 12px 1.25rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-surface);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    justify-content: flex-end;
}

.synced-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* Scrollbar styling */
.chat-settings-scroll::-webkit-scrollbar {
    width: 5px;
}

.chat-settings-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.chat-settings-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
