/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 50px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1, h2 {
    text-align: center;
    color: #333;
}

h1 {
    font-weight: 600;
    margin-bottom: 30px;
}

h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Adjusted gap for a tighter look */
}

.input-group {
    width: 100%;
    max-width: 400px; /* Or another appropriate width */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box; /* Ensures padding doesn't affect overall width */
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
    
    /* Custom arrow for select */
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%20197.97c-3.61%203.61-7.85%205.41-12.75%205.41s-9.14-1.8-12.75-5.41L146.2%2079.97l-115.3%20115.3c-3.61%203.61-7.85%205.41-12.75%205.41s-9.14-1.8-12.75-5.41c-7.22-7.22-7.22-18.91%200-26.13L133.45%2041.53c7.22-7.22%2018.91-7.22%2026.13%200L287%20171.84c7.22%207.23%207.22%2018.92%200%2026.13z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Make space for the arrow */
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.upload-area {
    position: relative;
    width: 100%;
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-area:hover {
    background-color: #f1f8ff;
}

#file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-label {
    font-size: 1.2em;
    color: #555;
}

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.user-header span {
    font-size: 1.1em;
}

.user-header a {
    margin-left: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.user-header a:hover {
    text-decoration: underline;
}

.sub-container {
    text-align: center;
    margin-top: 20px;
}

.btn-link {
    background-color: transparent;
    border: none;
    color: #007bff;
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}

.btn-link:hover {
    color: #0056b3;
    background-color: transparent;
    transform: none;
}

ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Button Styles */
.btn, button {
    padding: 12px 30px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.btn:hover, button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

input[type="submit"].btn {
    width: auto;
}


/* Interview Page Styles */
.interview-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background-color: #fff;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    padding: 0;
}

.left-panel {
    width: 30%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
}

#user-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.question-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.right-panel {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.presentation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    background-color: #e9ecef;
}

/* Make content in the right panel grow to fill space */
.right-panel .presentation-container,
.right-panel .video-container {
    flex-grow: 1;
}

/* When video is in the right panel, override aspect ratio styles */
.right-panel .video-container {
    padding-bottom: 0;
    height: 100%;
}

.controls, .record-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.record-controls button {
    background-color: #28a745;
}

.record-controls button:hover {
    background-color: #218838;
}

#recorded-video {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#download-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#download-link:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Question Page Styles */
.question-group {
    width: 100%;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.question-group h2 {
    margin-top: 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

ul.question-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

ul.question-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1.1em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
