body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #1a73e8;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    padding: 0 20px;
}

.tab-container {
    margin-top: 20px;
}

.tabs {
    display: flex;
    background-color: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.tab:hover {
    background-color: #f1f5ff;
}

.tab.active {
    border-bottom: 3px solid #1a73e8;
    color: #1a73e8;
    background-color: #f1f5ff;
}

.tab-content {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

/* Add styles for the 'updated' indicator on tabs */
.tab.updated {
    position: relative;
}

.tab.updated::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

h2 {
    color: #1a73e8;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1557b0;
}

button:disabled {
    background-color: #a6c8ff;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f1f1f1;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e1e1e1;
}

.btn-danger {
    background-color: #d93025;
}

.btn-danger:hover {
    background-color: #b7271d;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a73e8;
}

.card-subtitle {
    color: #666;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.card-footer button {
    margin-left: 10px;
}

.question-list {
    list-style-type: none;
    padding: 0;
}

.question-item {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-remove {
    background-color: #d93025;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.question-remove:hover {
    background-color: #b7271d;
}

/* Interview chat styles */
#chatBox {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 500px;
}

#chatHistory {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-input-container input {
    flex-grow: 1;
    margin-right: 10px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message-header {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    display: inline-block;
    max-width: 70%;
}

.message.interviewer {
    align-items: flex-start;
}

.message.candidate {
    align-items: flex-end;
}

.message.interviewer .message-content {
    background-color: #f1f1f1;
    border-bottom-left-radius: 5px;
}

.message.candidate .message-content {
    background-color: #e3f2fd;
    border-bottom-right-radius: 5px;
}

/* Evaluation styles */
.evaluation-section {
    margin-bottom: 20px;
}

.evaluation-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.evaluation-content {
    margin-left: 15px;
}

.score-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.score {
    font-weight: 600;
    margin-left: 10px;
    color: #1a73e8;
}

.recommendation {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    margin-left: 10px;
}

.recommendation.highly-recommend {
    background-color: #e6f4ea;
    color: #137333;
}

.recommendation.recommend {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.recommendation.consider {
    background-color: #fef7e0;
    color: #ea8600;
}

.recommendation.do-not-recommend {
    background-color: #fce8e6;
    color: #c5221f;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-ready {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.status-in-progress {
    background-color: #fef7e0;
    color: #ea8600;
}

.status-completed {
    background-color: #e6f4ea;
    color: #137333;
}

/* Loading indicator */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a73e8;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #e6f4ea;
    color: #137333;
    border-left: 4px solid #137333;
}

.alert-error {
    background-color: #fce8e6;
    color: #c5221f;
    border-left: 4px solid #c5221f;
}

.alert-warning {
    background-color: #fef7e0;
    color: #ea8600;
    border-left: 4px solid #ea8600;
}

.alert-info {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-left: 4px solid #1a73e8;
}

/* Session list styles */
.session-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-info {
    flex-grow: 1;
    margin-right: 20px;
}

.session-actions {
    flex-shrink: 0;
}

.session-title {
    font-weight: 500;
    margin: 0 0 5px 0;
    color: #1a73e8;
}

.session-meta {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* Transcript styles */
.transcript-message {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.message-role {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.transcript-content {
    white-space: pre-wrap;
}
.upload-status {
    margin-top: 10px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.upload-status .loader {
    margin-right: 10px;
}

.upload-status.success {
    background-color: #e6f4ea;
    color: #137333;
}

.upload-status.error {
    background-color: #fce8e6;
    color: #c5221f;
}

/* STAR Skills styles */
.star-skills-choosebar {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skills-filter {
  margin-bottom: 15px;
}

.filter-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.skills-choosebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.skill-tag {
  background-color: #f3f6f8;
  border: 1px solid #dde1e6;
  color: #0a66c2;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background-color: #e6f7ff;
  border-color: #0a66c2;
}

.skill-tag.selected {
  background-color: #deebff;
  border-color: #0a66c2;
  color: #0a66c2;
  font-weight: bold;
}

.selected-skills-container {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #dde1e6;
  border-radius: 6px;
  background-color: #fafbfc;
}

.selected-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}

.selected-skill {
  background-color: #0a66c2;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.remove-skill {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

.skill-badge {
  display: inline-block;
  background-color: #deebff;
  color: #0a66c2;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 13px;
}

.star-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}


.recording-status {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin-top: 10px;
}

.recording-indicator {
    color: #ff4b4b;
    font-weight: bold;
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.recording-indicator:before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff4b4b;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

#recordingTimer {
    font-family: monospace;
    font-weight: bold;
}

/* Recording controls */
.recording-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* Chat input container with record button */
.chat-input-container {
    display: flex;
    flex-direction: column;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.record-button {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #dc3545;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
    margin: 0 10px;
}

.record-button::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background-color: white;
    border-radius: 10px 10px 0 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.record-button::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 10px;
    background-color: white;
    border-radius: 0 0 15px 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.record-button:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.record-button:active {
    transform: scale(0.95);
}

.record-button i {
    display: none; /* Hide the icon since we're using CSS for the mic shape */
}

#cameraContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

#cameraPreview {
    border-radius: 8px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    width: 320px;
    height: 240px;
    object-fit: cover;
    max-width: 100%;
}

.stress-indicators {
    padding: 10px;
    margin: 10px 0;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-size: 14px;
}

.stress-indicators div {
    margin: 5px 0;
}

#stressFactors {
    font-size: 12px;
    color: #666;
}

.end-interview-btn {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    width: 100%;
}

.end-interview-btn:hover {
    background-color: #c82333;
}

#evaluation-table th {
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.2s;
}
#evaluation-table th.sorted-asc::after {
    content: " ▲";
}
#evaluation-table th.sorted-desc::after {
    content: " ▼";
}
#evaluation-table td, #evaluation-table th {
    text-align: center;
    vertical-align: middle;
}
#evaluation-table tr:hover {
    background: #f1f7ff;
}
#evaluation-table {
    width: 100%;
    margin-top: 1em;
}
#evaluation-table input, #evaluation-table button {
    margin-right: 0.5em;
}