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

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: white;
  color: #000000;
}

/* CSS Variables */
:root {
  --primary-green: #62d84e;
  --text-black: #000000;
  --button-radius: 30px;
}

/* HR Dashboard */
.hr-dashboard {
  min-height: 100vh;
  background: white;
  padding: 40px 20px;
}

.dashboard-header {
  text-align: center;
  color: #000000;
  margin-bottom: 60px;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #000000;
}

.dashboard-header p {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
}

.dashboard-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.create-interview-section,
.jobs-list-section {
  background: white;
  padding: 0;
}

.create-interview-section h2,
.jobs-list-section h2 {
  color: #000000;
  margin-bottom: 24px;
  font-size: 1.4rem;
  font-weight: 600;
}

.interview-form .form-group {
  margin-bottom: 20px;
}

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

.interview-form input,
.interview-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  color: #000000;
}

.interview-form input:focus,
.interview-form select:focus {
  outline: none;
  border-color: #000;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary-green);
  color: #000000;
  border: none;
  border-radius: var(--button-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover:not(:disabled) {
  background: #51c73d;
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(98, 216, 78, 0.4);
}

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

.error-message {
  background: #fee;
  color: #000000;
  padding: 12px;
  margin: 20px;
  border-left: 4px solid #c33;
}

.loading {
  text-align: center;
  color: #000000;
  padding: 20px;
}

.interview-url-section {
  margin-top: 30px;
  padding: 20px;
  background: #f0fff0;
  border: 2px solid var(--primary-green);
}

.interview-url-section h3 {
  color: #000000;
  margin-bottom: 15px;
}

.url-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.url-input {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--primary-green);
  font-family: monospace;
  font-size: 0.9rem;
  color: #000000;
}

.btn-copy {
  padding: 10px 20px;
  background: var(--primary-green);
  color: #000000;
  border: none;
  border-radius: var(--button-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-copy:hover {
  background: #51c73d;
}

.instruction {
  color: #000000;
  font-size: 0.9rem;
  margin-top: 10px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.job-card {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.job-card:hover {
  border-color: #000;
}

.job-card h3 {
  color: #000000;
  margin-bottom: 10px;
}

.job-id {
  color: #000000;
  font-size: 0.85rem;
  font-family: monospace;
}

.job-date {
  color: #000000;
  font-size: 0.85rem;
  margin-top: 5px;
}

.no-jobs {
  text-align: center;
  color: #000000;
  padding: 40px;
}

/* Interview Page - Side Panel Layout */
.interview-layout {
  display: flex;
  height: 100vh;
  background: white;
  overflow: hidden;
}

.side-panel {
  width: 280px;
  padding: 30px 20px;
  background: white;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  flex-shrink: 0;
}

.side-panel h2 {
  color: #000000;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.panel-section {
  margin-bottom: 25px;
}

.panel-section h3 {
  color: #000000;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #000000;
  font-size: 1rem;
  font-weight: 500;
}

.time-value {
  color: #000000;
  font-size: 1.5rem;
  font-weight: 700;
}

.time-value.low-time {
  color: #dc3545;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  max-width: 900px;
}

.status {
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.status.in-progress {
  background: #d4ffd4;
  color: #000000;
}

.status.completed {
  background: #dfe6e9;
  color: #000000;
}

.status.cancelled {
  background: #ffdddd;
  color: #000000;
}

.chat-section {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  display: flex;
  gap: 10px;
  max-width: 80%;
  animation: fadeIn 0.3s ease-in;
}

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

.hirebot-message {
  align-self: flex-start;
  flex-direction: row;
}

.candidate-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-icon {
  font-size: 32px;
  flex-shrink: 0;
  color: #000000;
}

.message-content {
  padding: 12px 16px;
  line-height: 1.6;
  word-wrap: break-word;
  color: #000000;
  border: 1px solid #e0e0e0;
}

.hirebot-message .message-content {
  background: #f5f5f5;
}

.candidate-message .message-content {
  background: #e8f8e5;
  border-color: var(--primary-green);
}

/* Markdown content styling */
.message-content p {
  margin: 0.5em 0;
  color: #000000;
}

.message-content p:first-child {
  margin-top: 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content strong {
  font-weight: 700;
  color: #000000;
}

.message-content ul,
.message-content ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.message-content li {
  margin: 0.25em 0;
  color: #000000;
}

.message-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  color: #000000;
}

.message-content pre {
  background: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  color: #000000;
}

.chat-input-form {
  background: white;
  border-top: 2px solid #e0e0e0;
  padding: 20px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.message-input {
  flex: 1;
  padding: 12px 50px 12px 12px;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  resize: none;
  transition: border-color 0.3s;
  color: #000000;
  border-radius: 8px;
}

.message-input:focus {
  outline: none;
  border-color: var(--primary-green);
}

.message-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.send-icon-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--primary-green);
  color: #000000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.send-icon-btn:hover:not(:disabled) {
  background: #51c73d;
  transform: scale(1.05);
}

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

.send-icon-btn svg {
  width: 20px;
  height: 20px;
}

.ai-disclaimer {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .interview-layout {
    flex-direction: column;
  }

  .side-panel {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
  }

  .main-content {
    max-width: 100%;
  }

  .message {
    max-width: 90%;
  }
}
