/* Premium CSS for Live Interviewer */

.interview-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: calc(100vh - 40px);
    margin-bottom: 40px;
}

/* Interviewer Header */
.interviewer-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
}

.avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.avatar-ring img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.avatar-ring.speaking {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    animation: pulseObj 1.5s infinite;
}

@keyframes pulseObj {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.controls {
    display: flex;
    gap: 12px;
}

/* Settings Panel */
.settings-panel {
    padding: 24px 32px;
    animation: fadeInDown 0.3s ease;
}

.settings-panel label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text-main);
}

.settings-panel input[type="text"],
.settings-panel textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    box-sizing: border-box;
}

/* Chat window */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.message {
    max-width: 80%;
    padding: 16px 20px;
    border-radius: 20px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
    word-wrap: break-word;
}

.system-msg {
    align-self: center;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

.assistant-msg {
    align-self: flex-start;
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.user-msg {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 16px 24px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Chat Input */
.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-glass);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-area textarea {
    flex: 1;
    min-height: 50px;
    max-height: 150px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    overflow-y: auto;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-mic,
.btn-send {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.btn-mic {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-mic:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-mic.listening {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    animation: pulseObj 1.5s infinite;
}

.btn-send {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-send:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}