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

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-nav a:hover {
    background-color: #34495e;
}

.sidebar-nav a.active {
    background-color: #3498db;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 250px; /* Match sidebar width */
    background-color: #f5f6fa;
    min-height: 100vh;
}

.section {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section.active {
    display: block;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

textarea, input[type="text"], input[type="date"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Datalist and Input Styles */
#intervieweeInput {
    width: 100%;
    padding: 8px 28px 8px 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#intervieweeInput:focus {
    border-color: #3498db;
    outline: none;
}

#intervieweeInput::-webkit-calendar-picker-indicator {
    display: block;
    opacity: 0.6;
    cursor: pointer;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

#intervieweeInput::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

datalist {
    max-height: 200px;
    overflow-y: auto;
}

option {
    font-size: 1em;
    padding: 0.5em;
    background-color: white;
    cursor: pointer;
}

option:hover {
    background-color: #f0f0f0;
}

/* Button Styles */
.button-container {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#analysisTable {
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#analysisTable.visible {
    opacity: 1;
}

/* Report Styles */
.report-container {
    margin-top: 20px;
}

.interviews-section, .summary-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-section h3 {
    margin-bottom: 15px;
}

.analysis {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.analysis h4 {
    margin-bottom: 10px;
}

/* Error Styles */
.error {
    border-color: red;
}

.error-message {
    color: #dc3545;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 0.8em;
    display: none;
}

/* Disabled States */
input:disabled, textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.overview-container {
    padding: 20px;
}

.selection-area {
    margin-bottom: 20px;
}

.data-entry-form {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.hidden {
    display: none;
}

#existingInterviewsTable table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#existingInterviewsTable th,
#existingInterviewsTable td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#existingInterviewsTable th {
    background-color: #f5f5f5;
}

#existingInterviewsTable button {
    margin: 0 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
}

#existingInterviewsTable button:hover {
    background-color: #0056b3;
}

#existingInterviewsTable details {
    margin-top: 5px;
    font-size: 0.9em;
}

#existingInterviewsTable summary {
    cursor: pointer;
    color: #007bff;
    font-size: 0.8em;
}

#existingInterviewsTable details p {
    margin: 5px 0;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.data-entry-form[data-is-editing='true'] {
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
}

.data-entry-form[data-is-editing='true'] h3::after {
    content: ' (Editing)';
    color: #007bff;
    font-size: 0.9em;
}

#existingInterviewsTable button[onclick^="deleteInterview"] {
    background-color: #dc3545;
}

#existingInterviewsTable button[onclick^="deleteInterview"]:hover {
    background-color: #c82333;
}

.new-entry {
    background-color: #e8f4ff;
    transition: background-color 0.5s ease;
}

#manageIntervieweeInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#intervieweeName[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#updateNameBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.button-group .danger {
    background-color: #dc3545;
    color: white;
}

.button-group .danger:hover {
    background-color: #c82333;
}

.button-group .danger:disabled {
    background-color: #e9a8ae;
    cursor: not-allowed;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.login-container .form-group {
    margin-bottom: 1rem;
}

.login-container label {
    display: block;
    margin-bottom: 0.5rem;
}

.login-container input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #0056b3;
}

.logout-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* Modify mainApp styling */
#mainApp {
    display: flex;
    min-height: 100vh;
}