/* Base Styles */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* ===== JOB APPLICATION TRACKER STYLES ===== */

/* CSS Custom Properties */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #434343 0%, #000000 100%);

  --color-applied: #6366f1;
  --color-interviewing: #f59e0b;
  --color-offered: #8b5cf6;
  --color-rejected: #ef4444;
  --color-accepted: #10b981;
  --color-withdrawn: #6b7280;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Dashboard Container */
.dashboard-container,
.list-container,
.form-container,
.detail-container,
.delete-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Headers */
.dashboard-header,
.list-header,
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-content {
  flex: 1;
}

.dashboard-title,
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.dashboard-title svg {
  color: #6366f1;
}

.header-subtitle {
  color: #64748b;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Alert */
.alert-success-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  color: #065f46;
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats Overview */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.stat-card.total {
  background: var(--gradient-primary);
  color: white;
}

.stat-card.total .stat-icon {
  background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: var(--radius-lg);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Status Cards Grid */
.status-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.status-card.applied::before {
  background: var(--color-applied);
}

.status-card.interviewing::before {
  background: var(--color-interviewing);
}

.status-card.offered::before {
  background: var(--color-offered);
}

.status-card.rejected::before {
  background: var(--color-rejected);
}

.status-card.accepted::before {
  background: var(--color-accepted);
}

.status-card.withdrawn::before {
  background: var(--color-withdrawn);
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.status-card.applied:hover {
  border-color: var(--color-applied);
}

.status-card.interviewing:hover {
  border-color: var(--color-interviewing);
}

.status-card.offered:hover {
  border-color: var(--color-offered);
}

.status-card.rejected:hover {
  border-color: var(--color-rejected);
}

.status-card.accepted:hover {
  border-color: var(--color-accepted);
}

.status-card.withdrawn:hover {
  border-color: var(--color-withdrawn);
}

.status-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.status-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.status-card.applied .status-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-applied);
}

.status-card.interviewing .status-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-interviewing);
}

.status-card.offered .status-icon {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-offered);
}

.status-card.rejected .status-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-rejected);
}

.status-card.accepted .status-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accepted);
}

.status-card.withdrawn .status-icon {
  background: rgba(107, 114, 128, 0.1);
  color: var(--color-withdrawn);
}

.status-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
}

.status-count {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-badge.applied {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-applied);
}

.status-badge.interviewing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-interviewing);
}

.status-badge.offered {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-offered);
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-rejected);
}

.status-badge.accepted {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accepted);
}

.status-badge.withdrawn {
  background: rgba(107, 114, 128, 0.1);
  color: var(--color-withdrawn);
}

/* Recent Section */
.recent-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.view-all-link {
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: #4f46e5;
}

/* Recent Cards */
.recent-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.recent-card:hover {
  background: white;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.recent-card-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.company-info {
  display: flex;
  flex-direction: column;
}

.company-info .company-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.company-info .job-title {
  color: #64748b;
  font-size: 0.875rem;
}

.recent-card-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.meta-item svg {
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #64748b;
}

.empty-state svg {
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
  max-width: 320px;
}

/* Filters Bar */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-group label {
  font-weight: 500;
  color: #475569;
  font-size: 0.875rem;
}

.status-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: #64748b;
  background: #f1f5f9;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: #1e293b;
  background: #e2e8f0;
}

.filter-btn.active {
  background: #1e293b;
  color: white;
}

.filter-btn.applied.active {
  background: var(--color-applied);
}

.filter-btn.interviewing.active {
  background: var(--color-interviewing);
}

.filter-btn.offered.active {
  background: var(--color-offered);
}

.filter-btn.rejected.active {
  background: var(--color-rejected);
}

.filter-btn.accepted.active {
  background: var(--color-accepted);
}

.filter-btn.withdrawn.active {
  background: var(--color-withdrawn);
}

/* Table */
.table-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.applications-table {
  width: 100%;
  border-collapse: collapse;
}

.applications-table th {
  background: #f8fafc;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.applications-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.applications-table tbody tr {
  transition: background 0.2s ease;
}

.applications-table tbody tr:hover {
  background: #f8fafc;
}

.applications-table tbody tr:last-child td {
  border-bottom: none;
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.sort-link:hover {
  color: #1e293b;
}

.sort-icon {
  font-size: 0.75rem;
}

.company-cell .company-name {
  font-weight: 600;
  color: #1e293b;
}

.actions-col {
  width: 120px;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.action-btn.view {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.action-btn.view:hover {
  background: #6366f1;
  color: white;
}

.action-btn.edit {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.action-btn.edit:hover {
  background: #f59e0b;
  color: white;
}

.action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.action-btn.delete:hover {
  background: #ef4444;
  color: white;
}

/* Detail View */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.breadcrumb a {
  color: #6366f1;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #94a3b8;
}

.detail-content {
  display: grid;
  gap: 1.5rem;
}

.main-info-card,
.notes-card,
.status-update-card,
.timeline-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.company-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.company-avatar {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
}

.company-details {
  flex: 1;
}

.company-details .company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.company-details .job-title {
  font-size: 1.125rem;
  font-weight: 400;
  color: #64748b;
  margin: 0.25rem 0 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
}

.info-value {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 500;
}

.info-link {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.info-link:hover {
  text-decoration: underline;
}

.contact-email {
  color: #6366f1;
  text-decoration: none;
  margin-left: 0.25rem;
}

/* Status Update */
.status-update-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem;
}

.status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-form {
  display: inline;
}

.status-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f1f5f9;
  color: #64748b;
}

.status-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.status-btn.applied.active {
  background: var(--color-applied);
  color: white;
}

.status-btn.interviewing.active {
  background: var(--color-interviewing);
  color: white;
}

.status-btn.offered.active {
  background: var(--color-offered);
  color: white;
}

.status-btn.rejected.active {
  background: var(--color-rejected);
  color: white;
}

.status-btn.accepted.active {
  background: var(--color-accepted);
  color: white;
}

.status-btn.withdrawn.active {
  background: var(--color-withdrawn);
  color: white;
}

.status-btn:disabled {
  cursor: default;
  opacity: 1;
}

.status-btn:not(.active):hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Notes */
.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.notes-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.btn-edit-notes {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit-notes:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.notes-content {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  min-height: 100px;
}

.notes-content p {
  margin: 0;
  color: #475569;
  white-space: pre-wrap;
  line-height: 1.6;
}

.notes-content .no-notes {
  color: #94a3b8;
  font-style: italic;
}

.notes-edit textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: #1e293b;
  resize: vertical;
  transition: border-color 0.2s;
}

.notes-edit textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.notes-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Timeline */
.timeline-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  padding-bottom: 1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  width: 12px;
  height: 12px;
  background: #6366f1;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #6366f1;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.timeline-date {
  font-size: 0.75rem;
  color: #64748b;
}

.timeline-text {
  font-size: 0.875rem;
  color: #1e293b;
  font-weight: 500;
}

/* Form Styles */
.form-header {
  margin-bottom: 2rem;
}

.form-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.5rem 0;
}

.form-header p {
  color: #64748b;
  margin: 0;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.form-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: #1e293b;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: #94a3b8;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Delete Page */
.delete-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.delete-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 450px;
  width: 100%;
}

.delete-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.delete-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem;
}

.delete-warning {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.delete-details {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.detail-row:not(:last-child) {
  border-bottom: 1px solid #e2e8f0;
}

.detail-row .label {
  font-size: 0.875rem;
  color: #64748b;
}

.detail-row .value {
  font-weight: 500;
  color: #1e293b;
}

.delete-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {

  .dashboard-header,
  .list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions .btn-create,
  .header-actions .btn-secondary {
    flex: 1;
    justify-content: center;
  }

  .status-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .applications-table {
    font-size: 0.875rem;
  }

  .applications-table th,
  .applications-table td {
    padding: 0.75rem;
  }

  .company-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ===== INTERVIEW MANAGEMENT STYLES ===== */

/* Interview Cards */
.interviews-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.interviews-card .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.interviews-card .section-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.interviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.interview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.interview-card.upcoming {
  border-left: 4px solid var(--color-interviewing);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.interview-card.completed {
  opacity: 0.8;
  border-left: 4px solid var(--color-accepted);
}

.interview-card.cancelled {
  opacity: 0.6;
  border-left: 4px solid var(--color-withdrawn);
}

.interview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.interview-datetime {
  display: flex;
  flex-direction: column;
}

.interview-date {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.interview-time {
  color: #64748b;
  font-size: 0.875rem;
}

.interview-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.interview-type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.interview-type-badge.phone {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.interview-type-badge.video {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.interview-type-badge.onsite {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.interview-type-badge.technical {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.interview-type-badge.behavioral {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.interview-type-badge.panel {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.interview-type-badge.final {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.interview-type-badge.other {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.interview-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.interview-status-badge.scheduled {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.interview-status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.interview-status-badge.cancelled {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.interview-status-badge.noshow {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.interview-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.interview-details .detail-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #64748b;
}

.interview-details .detail-item.link {
  color: #6366f1;
  text-decoration: none;
}

.interview-details .detail-item.link:hover {
  text-decoration: underline;
}

.interview-countdown {
  margin: 0.75rem 0;
}

.countdown-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  padding: 0.25rem 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-md);
}

.countdown-text.countdown-soon {
  background: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

.countdown-text.countdown-now {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Checklist Section */
.checklist-section {
  margin-top: 1rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.checklist-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

.checklist-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #475569;
}

.checklist-toggle .chevron {
  transition: transform 0.2s;
}

.checklist-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar {
  width: 100px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.checklist-items {
  margin-top: 0.75rem;
  padding-left: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.checklist-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.checklist-item.completed .item-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex: 1;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox-label input:checked+.checkbox-custom {
  background: #10b981;
  border-color: #10b981;
}

.checkbox-label input:checked+.checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.item-title {
  font-size: 0.875rem;
  color: #475569;
}

.delete-item-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all 0.2s;
}

.checklist-item:hover .delete-item-btn {
  opacity: 1;
}

.delete-item-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.add-checklist-item {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

.checklist-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.checklist-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.add-item-btn {
  padding: 0.5rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.add-item-btn:hover {
  background: #4f46e5;
}

/* Outcome Notes */
.outcome-notes {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid #10b981;
}

.outcome-notes h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #065f46;
}

.outcome-notes p {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
  white-space: pre-wrap;
}

/* Interview Actions */
.interview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.interview-actions .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  height: auto;
  justify-content: center;
}

.interview-actions .action-btn.complete {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.interview-actions .action-btn.complete:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.interview-actions .action-btn.edit {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.interview-actions .action-btn.edit:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.interview-actions .action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.interview-actions .action-btn.delete:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Empty Interviews */
.empty-interviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  text-align: center;
  color: #64748b;
}

.empty-interviews svg {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-interviews p {
  margin-bottom: 1rem;
}

/* Calendar Styles */
.calendar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.upcoming-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 9999px;
  color: #d97706;
  font-weight: 500;
  font-size: 0.875rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.current-month {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  min-width: 200px;
  text-align: center;
}

.calendar-grid {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.weekday {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #64748b;
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 120px;
  padding: 0.75rem;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  background: white;
  transition: background 0.2s;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover {
  background: #f8fafc;
}

.calendar-day.empty {
  background: #fafafa;
}

.calendar-day.today {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.calendar-day.today .day-number {
  background: #6366f1;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.past {
  opacity: 0.6;
}

.day-number {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.day-interviews {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.interview-indicator {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.interview-indicator.phone {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.interview-indicator.video {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.interview-indicator.onsite {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.interview-indicator.technical {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.interview-indicator.behavioral {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.interview-indicator.panel {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.interview-indicator.final {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.interview-indicator.other {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.interview-indicator:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

.interview-indicator .interview-time {
  font-weight: 600;
}

.interview-indicator .interview-company {
  font-size: 0.7rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-interviews {
  font-size: 0.7rem;
  color: #64748b;
  padding: 0.125rem 0.5rem;
}

/* Upcoming List */
.upcoming-list {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.upcoming-list h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.interview-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.interview-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.interview-list-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
}

.interview-list-item.past {
  opacity: 0.6;
}

.interview-list-item .interview-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  padding: 0.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.interview-list-item .date-day {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.interview-list-item .date-month {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
}

.interview-list-item .interview-info {
  flex: 1;
}

.interview-list-item .interview-company {
  font-weight: 600;
  color: #1e293b;
}

.interview-list-item .interview-details {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.interview-list-item .interviewer {
  font-size: 0.8125rem;
  color: #64748b;
}

.interview-status .status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.interview-status .status-badge.scheduled {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.interview-status .status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.interview-status .status-badge.cancelled {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

/* Calendar Legend */
.calendar-legend {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.calendar-legend h4 {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.phone {
  background: rgba(99, 102, 241, 0.3);
}

.legend-color.video {
  background: rgba(59, 130, 246, 0.3);
}

.legend-color.onsite {
  background: rgba(16, 185, 129, 0.3);
}

.legend-color.technical {
  background: rgba(139, 92, 246, 0.3);
}

.legend-color.behavioral {
  background: rgba(236, 72, 153, 0.3);
}

.legend-color.panel {
  background: rgba(245, 158, 11, 0.3);
}

.legend-color.final {
  background: rgba(239, 68, 68, 0.3);
}

.legend-color.other {
  background: rgba(107, 114, 128, 0.3);
}

.legend-label {
  font-size: 0.8125rem;
  color: #475569;
}

/* Interview Summary Card (Complete page) */
.interview-summary-card {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
}

.summary-details h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.summary-details p {
  margin: 0.25rem 0 0;
  color: #64748b;
}

.summary-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.summary-info .info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-info .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
}

.summary-info .value {
  font-size: 0.9375rem;
  color: #1e293b;
}

/* Completion Tips */
.completion-tips {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.completion-tips h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9375rem;
}

.completion-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #92400e;
}

.completion-tips li {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Form improvements */
.section-description {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.form-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  color: #0369a1;
  font-size: 0.875rem;
}

/* Responsive calendar */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 80px;
    padding: 0.5rem;
  }

  .interview-indicator .interview-company {
    display: none;
  }

  .interview-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .interview-list-item .interview-date {
    flex-direction: row;
    gap: 0.5rem;
  }
}

/* ===== CONTACTS & DOCUMENTS STYLES ===== */

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.page-header h1 svg {
  color: #6366f1;
}

.page-header .subtitle {
  color: #64748b;
  margin-top: 0.5rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: #1e293b;
  border-color: #cbd5e1;
}

.filter-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* Contacts Grid */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-avatar.large {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.contact-name a {
  color: inherit;
  text-decoration: none;
}

.contact-name a:hover {
  color: #6366f1;
}

.contact-title {
  font-size: 0.875rem;
  color: #64748b;
}

/* Contact Type Badges */
.contact-type-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.contact-type-badge.recruiter {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.contact-type-badge.hiringmanager {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.contact-type-badge.reference {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.contact-type-badge.other {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.contact-type-badge.large {
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-details .detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.contact-details .detail-row a {
  color: #6366f1;
  text-decoration: none;
}

.contact-details .detail-row a:hover {
  text-decoration: underline;
}

.linked-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  padding: 0.5rem 0;
  border-top: 1px solid #f1f5f9;
}

.contact-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.contact-actions .action-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.contact-actions .action-btn.edit {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.contact-actions .action-btn.edit:hover {
  background: #f59e0b;
  color: white;
}

.contact-actions .action-btn.delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.contact-actions .action-btn.delete:hover {
  background: #ef4444;
  color: white;
}

/* Documents Grid */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.document-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.document-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.document-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.document-icon.resume {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.document-icon.coverletter {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.document-icon.portfolio {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.document-icon.other {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.document-icon.large {
  width: 72px;
  height: 72px;
}

.document-info {
  flex: 1;
}

.document-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  word-break: break-word;
}

.document-name a {
  color: inherit;
  text-decoration: none;
}

.document-name a:hover {
  color: #6366f1;
}

.document-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.document-type-badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.document-type-badge.resume {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.document-type-badge.coverletter {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.document-type-badge.portfolio {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.document-type-badge.other {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.version-tag {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
}

.document-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.document-details .separator {
  color: #cbd5e1;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.document-actions .action-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.document-actions .action-btn.download {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.document-actions .action-btn.download:hover {
  background: #10b981;
  color: white;
}

/* Upload Area */
.upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.02);
}

.upload-area svg {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.upload-text {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  color: #1e293b;
  font-weight: 500;
}

.clear-file {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.clear-file:hover {
  color: #ef4444;
}

/* Delete Confirmation */
.delete-confirmation {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}

.delete-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.delete-confirmation h3 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.contact-name-preview,
.document-name-preview {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.company-preview {
  color: #64748b;
  margin-bottom: 1rem;
}

.document-meta-preview {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.warning-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-md);
  color: #92400e;
  font-size: 0.875rem;
  text-align: left;
  margin-bottom: 1rem;
}

.delete-warning-text {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.form-actions.centered {
  justify-content: center;
}

/* Document Detail Header */
.document-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.document-detail-info h1 {
  font-size: 1.5rem;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.description-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.description-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}

/* Linked Applications List */
.linked-applications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.linked-app-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
}

.linked-app-item .app-info a {
  color: #1e293b;
  text-decoration: none;
}

.linked-app-item .app-info a:hover {
  color: #6366f1;
}

.role-badge {
  display: inline-flex;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  background: #e2e8f0;
  color: #475569;
  border-radius: 9999px;
}

.added-date,
.sent-date,
.attached-date {
  font-size: 0.8125rem;
  color: #64748b;
}

.empty-text {
  color: #64748b;
  text-align: center;
  padding: 2rem;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: #6366f1;
}

/* Form Styles for Contacts/Documents */
.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.375rem;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: #1e293b;
  background: white;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.validation-message {
  display: block;
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.375rem;
}

.validation-summary {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  color: #dc2626;
  margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: #1e293b;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
}

/* Section Cards for Details Page */
.contacts-section-card,
.documents-section-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.contacts-section-card .section-header,
.documents-section-card .section-header {
  margin-bottom: 1rem;
}

.contacts-section-card h3,
.documents-section-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #1e293b;
  margin: 0;
}

/* Linked Items Lists */
.linked-contacts-list,
.linked-documents-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.linked-contact-item,
.linked-document-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.linked-contact-item:hover,
.linked-document-item:hover {
  background: #f1f5f9;
}

.contact-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.document-icon-small {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.document-icon-small.resume {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.document-icon-small.coverletter {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.document-icon-small.portfolio {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.document-icon-small.other {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.linked-contact-info,
.linked-document-info {
  flex: 1;
  min-width: 0;
}

.contact-name-row,
.document-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-name-row a,
.document-name-row a {
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
}

.contact-name-row a:hover,
.document-name-row a:hover {
  color: #6366f1;
}

.contact-type-badge.small {
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
}

.contact-meta,
.document-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.contact-meta a {
  color: #6366f1;
  text-decoration: none;
}

.sent-badge {
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.unlink-btn,
.download-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.unlink-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
}

.unlink-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.download-btn {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  text-decoration: none;
}

.download-btn:hover {
  background: #10b981;
  color: white;
}

/* Small button variant */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}