:root {
    --primary: #1e3a8a; /* Deep Navy Blue */
    --bg: #f9fafb;
    --chat-bg: #ffffff;
    --user-msg: #1e3a8a;
    --interviewer-msg: #f3f4f6;
    --evaluator-msg: #e0f2fe; /* Light sky blue background for evaluator */
    --evaluator-text: #0369a1; /* Dark sky blue text */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding-bottom: 15vh;
    box-sizing: border-box;
}

/* Setup Screen */
#setup-screen {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

h1 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

button:hover {
    background-color: #4338ca;
}

/* Chat Screen */
#chat-screen {
    display: none;
    /* Hidden initially */
    width: 100%;
    max-width: 600px;
    height: 90vh;
    background: var(--chat-bg);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    overflow: hidden;
}

#header {
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #111;
}

#status {
    font-size: 0.8rem;
    color: #10b981;
}

#messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.interviewer {
    align-self: flex-start;
    background-color: var(--interviewer-msg);
    color: #1f2937;
    border-bottom-left-radius: 0;
}

.message.evaluator {
    align-self: flex-start;
    background-color: var(--evaluator-msg);
    color: var(--evaluator-text);
    border: 1px solid #a7f3d0;
    font-size: 0.9rem;
}

.message.user {
    align-self: flex-end;
    background-color: var(--user-msg);
    color: white;
    border-bottom-right-radius: 0;
}

.sender-name {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    opacity: 0.7;
}

#input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}

#input-area input {
    margin-bottom: 0;
}

#input-area button {
    width: auto;
}