* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #2a2a2a;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 193, 7, 0.1);
    padding: 30px;
    animation: fadeIn 0.5s ease-in;
    border: 1px solid #3a3a3a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Selector */
.language-selector {
    text-align: right;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3a3a3a;
}

.language-selector label {
    margin-right: 10px;
    font-weight: 500;
    color: #ffc107;
}

.language-selector select {
    padding: 8px 15px;
    border: 2px solid #ffc107;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    background: #1a1a1a;
    color: #ffc107;
    transition: all 0.3s ease;
}

.language-selector select:focus {
    outline: none;
    border-color: #ffcd38;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #3a3a3a;
    z-index: 0;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border: 3px solid #3a3a3a;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
}

.progress-step .step-label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 80px;
}

.progress-step.completed .step-number,
.progress-step.active .step-number {
    cursor: pointer;
}

.progress-step.active .step-number {
    background: #ffc107;
    color: #1a1a1a;
    border-color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.progress-step.active .step-label {
    color: #ffc107;
}

.progress-step.completed .step-number {
    background: #4a4a4a;
    color: #ffc107;
    border-color: #ffc107;
}

.progress-step.completed .step-label {
    color: #888;
}

/* Welcome Stage */
.welcome-content {
    text-align: center;
    padding: 20px;
}

.welcome-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.welcome-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 20px auto 30px;
    padding: 0;
}

.welcome-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #e0e0e0;
    border-bottom: 1px solid #3a3a3a;
}

.welcome-list li:last-child {
    border-bottom: none;
}

.welcome-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

/* Stages */
.stage {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.stage.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h2 {
    color: #ffc107;
    margin-bottom: 25px;
    font-size: 28px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

h3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 20px;
}

.optional-label {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffc107;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #1a1a1a;
    color: #e0e0e0;
}

/* Year input with current checkbox */
.year-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.year-input-group input[type="number"] {
    flex: 1;
}

.current-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    color: #888;
    font-size: 14px;
}

.current-checkbox input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: #ffc107;
}

.current-checkbox span {
    color: #888;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ffc107;
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    background: #ffcd38;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.5);
}

.btn-secondary {
    background: #3a3a3a;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.btn-secondary:hover {
    background: #4a4a4a;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

.btn-back {
    background: transparent;
    color: #888;
    border: 2px solid #3a3a3a;
    margin-bottom: 15px;
}

.btn-back:hover {
    background: #2a2a2a;
    color: #ffc107;
    border-color: #ffc107;
}

/* Form buttons container for back + next buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
}

.form-buttons .btn {
    flex: 1;
    max-width: 45%;
    text-align: center;
}

.form-buttons .btn-back {
    margin-bottom: 0;
}

.btn-link {
    background: none;
    color: #888;
    text-decoration: underline;
    padding: 10px;
}

.btn-link:hover {
    color: #ffc107;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Camera Section */
.encouragement {
    text-align: center;
    color: #ffc107;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 16px;
}

.camera-container {
    text-align: center;
    margin: 30px 0;
    min-height: 300px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3a3a3a;
}

#camera-stream {
    max-width: 100%;
    border-radius: 10px;
}

#photo-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
}

.camera-controls {
    text-align: center;
    margin-bottom: 20px;
}

.camera-controls button {
    margin: 5px;
}

#continue-from-photo {
    display: block;
    margin: 20px auto 0;
}

/* Professional Information */
.section {
    margin-bottom: 35px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
}

.dynamic-item,
.education-item,
.experience-item {
    position: relative;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #3a3a3a;
}

.dynamic-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dynamic-item .btn-remove {
    position: static;
    flex-shrink: 0;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #ff6666;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.skill-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #1a1a1a;
    color: #e0e0e0;
}

.skill-input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.skill-input::placeholder {
    color: #666;
}

/* Chat Interface */
.interview-start {
    text-align: center;
    padding: 40px 20px;
}

.interview-start p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 20px;
    scroll-behavior: smooth;
    border: 2px solid #3a3a3a;
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 80%;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.ai {
    background: #ffc107;
    color: #1a1a1a;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    font-weight: 500;
}

.message.user {
    background: #3a3a3a;
    color: #e0e0e0;
    margin-left: auto;
    border: 1px solid #4a4a4a;
}

.message-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.8;
}

.message-content {
    font-size: 15px;
    line-height: 1.5;
}

.chat-input-container {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #3a3a3a;
}

#chat-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    resize: vertical;
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

#chat-input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.chat-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Interview Complete */
#interview-complete {
    text-align: center;
    padding: 40px 20px;
}

#interview-complete p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 20px auto;
    border: 5px solid #3a3a3a;
    border-top: 5px solid #ffc107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feedback Section */
#interview-complete {
    text-align: center;
}

#feedback-container {
    margin: 30px 0;
    text-align: left;
}

#feedback-container h3 {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feedback-content {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 14px;
}

.feedback-content p {
    margin-bottom: 15px;
}

.feedback-content strong {
    color: #ffc107;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 15px;
}

.feedback-content::-webkit-scrollbar {
    width: 8px;
}

.feedback-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.feedback-content::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}

.feedback-content::-webkit-scrollbar-thumb:hover {
    background: #e6ac00;
}

#submit-result {
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .progress-step .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .progress-step .step-label {
        font-size: 9px;
        max-width: 60px;
    }

    .progress-bar::before {
        top: 16px;
    }

    h2 {
        font-size: 24px;
    }

    .chat-messages {
        height: 300px;
    }

    .message {
        max-width: 90%;
    }

    .chat-buttons {
        flex-direction: column;
    }

    .chat-buttons button {
        width: 100%;
    }

    .welcome-content {
        padding: 10px;
    }

    .welcome-list {
        margin: 15px auto 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .progress-step .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .progress-step .step-label {
        font-size: 8px;
        max-width: 50px;
    }

    .progress-bar::before {
        top: 14px;
    }
}
