:root {
  /* Colors - Based on the screenshot's sophisticated earthy palette */
  --color-primary: #8d7b56; /* The brownish/gold from the header */
  --color-primary-dark: #7a6a4a;
  --color-secondary: #5d4037;
  --bg-app: #fdfcf9;
  --bg-sidebar: #fff;
  --bg-card: #ffffff;
  --border-color: #e0dcd0;
  --text-main: #333333;
  --text-muted: #757575;
  --accent-purple: #9c27b0;
  --accent-blue: #03a9f4;
  --accent-orange: #ff9800;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Typography */
  --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sidebar Layout */
.sidebar {
  width: 240px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  gap: 12px;
  transition: background 0.2s;
}

.sidebar-item:hover {
  background-color: #f5f3ef;
}

.sidebar-item.active {
  background-color: var(--color-primary);
  color: white;
}

.sidebar-item.active svg {
  color: white;
}

/* Main Content Area */
.main-layout {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.top-header {
  height: 56px;
  background-color: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.notification-badge {
  position: relative;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: red;
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
}

/* Page Content */
.content-wrapper {
  padding: 24px;
  overflow-y: auto;
}

.breadcrumb-nav {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title-row {
  margin-bottom: 24px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

/* Candidate Profile Grid Layout */
.candidate-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

/* Left Sidebar Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.avatar-container {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-image-placeholder {
  width: 120px;
  height: 120px;
  background: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  border: 1px solid var(--border-color);
}

.candidate-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.info-field {
  text-align: left;
  margin-bottom: 12px;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  color: var(--text-main);
  display: block;
  width: 100%;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.evaluation-box {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.eval-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.form-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.form-select, .form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  background: white;
}

.btn {
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  width: 100%;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  width: 100%;
  margin-top: 8px;
}

/* Tabs */
.tabs-container {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 24px;
}

.tab {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.tab.active {
  color: var(--color-primary);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
}

/* Main Form Panels */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.panel {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.panel-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-basic { border-left: 4px solid var(--color-primary); }
.panel-location { border-left: 4px solid var(--accent-purple); }
.panel-lists { border-left: 4px solid var(--accent-blue); }
.panel-notes { border-left: 4px solid var(--accent-orange); }

.panel-header.location-title { color: var(--accent-purple); }
.panel-header.lists-title { color: var(--accent-blue); }
.panel-header.notes-title { color: var(--accent-orange); }

.company-select-container {
    position: relative;
}

.company-select-icon {
    position: absolute; 
    right: 0; 
    bottom: 8px;
}

.linkedin-badge {
    background: #f5f5f5; 
    padding: 4px 8px; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 12px; 
    margin-top: 4px;
}

.linkedin-icon-square {
    background: #0077b5; 
    color: white; 
    width: 16px; 
    height: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 2px; 
    font-weight: bold; 
    font-size: 10px;
}

.linkedin-url {
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
}

.watermark-container {
    display: flex; 
    justify-content: center; 
    opacity: 0.05; 
    margin-top: 60px; 
    pointer-events: none;
}

.watermark-content {
    text-align: center;
}

.watermark-text {
    font-size: 24px; 
    font-weight: bold; 
    letter-spacing: 4px; 
    margin-top: 10px;
}

.btn-photo-change {
    padding: 4px 8px; 
    font-size: 11px; 
    border: 1px solid #ddd; 
    background: #fff; 
    display: flex; 
    align-items: center; 
    gap: 4px;
}

.breadcrumb-link {
    text-decoration: none; 
    color: inherit;
}

/* Note Box */
.notes-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.notes-input {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
}

.btn-add {
  background: #eee;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: 4px;
}

.empty-state-icon {
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Utility */
.placeholder-avatar {
  width: 120px;
  height: 120px;
  background: #f8f8f8;
  border-radius: 4px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-avatar img {
  width: 60%;
  opacity: 0.3;
}
