/* Claude-inspired Design System */
:root {
  /* Primary Colors */
  --color-cream: #F4EFE6;
  --color-brown: #1F1F1F;
  --color-burnt-orange: #D97757;

  /* Secondary Colors */
  --color-terracotta: #C86B4E;
  --color-warm-gray: #6B6B6B;
  --color-light-peach: #F9F5F0;
  --color-navy: #000000;

  /* Spacing */
  --border-radius: 10px;
  --transition: 200ms ease-in-out;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-brown);
  background-color: var(--color-cream);
}

/* Auth Pages */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.auth-header {
  text-align: center;
  padding: 48px 40px 32px;
  background: linear-gradient(135deg, var(--color-light-peach) 0%, white 100%);
}

.auth-logo {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-brown);
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--color-warm-gray);
  font-size: 15px;
  margin: 0;
}

.auth-content {
  padding: 32px 40px;
}

.auth-footer {
  text-align: center;
  padding: 24px 40px;
  background: var(--color-light-peach);
  color: var(--color-warm-gray);
  font-size: 13px;
}

.auth-footer p {
  margin: 0;
}

/* Form Styles */
.form-label {
  font-weight: 500;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  border: 1.5px solid #E5E5E5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  transition: all var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-burnt-orange);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
  outline: none;
}

/* Button Styles */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 12px 24px;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--color-burnt-orange);
  color: white;
}

.btn-primary:hover {
  background: var(--color-terracotta);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-warm-gray);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-brown);
}

.btn-outline-primary {
  border: 1.5px solid var(--color-burnt-orange);
  color: var(--color-burnt-orange);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--color-burnt-orange);
  color: white;
}

/* Alert Styles */
.alert {
  border-radius: 8px;
  border: none;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.alert-danger {
  background: #FEE;
  color: #C33;
}

.alert-success {
  background: #EFE;
  color: #363;
}

.alert-info {
  background: #EEF;
  color: #336;
}

.alert-warning {
  background: #FFC;
  color: #863;
}

/* Main Layout (for authenticated pages) */
.main-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--color-cream);
}

.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid #E5E5E5;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  width: 100%;
}

/* Header */
.header {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-brown);
  margin: 0;
}

/* Card Styles */
.card {
  background: white;
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-header {
  background: var(--color-light-peach);
  border-bottom: 1px solid #E5E5E5;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--color-brown);
}

.card-body {
  padding: 20px;
}

/* Table Styles */
.table {
  color: var(--color-brown);
}

.table thead th {
  background: var(--color-light-peach);
  border-bottom: 2px solid #E5E5E5;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--color-warm-gray);
  padding: 12px 16px;
}

.table tbody tr {
  transition: all var(--transition);
}

.table tbody tr:hover {
  background: var(--color-light-peach);
}

.table td {
  padding: 12px 16px;
  vertical-align: middle;
}

/* Badge Styles */
.badge {
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 500;
  font-size: 12px;
}

/* Utility Classes */
.text-muted {
  color: var(--color-warm-gray) !important;
}

.text-primary {
  color: var(--color-burnt-orange) !important;
}

.bg-primary {
  background-color: var(--color-burnt-orange) !important;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .header {
    padding: 16px;
  }

  .page-title {
    font-size: 20px;
  }

  .content-container {
    padding: 0;
  }

  .card {
    margin-bottom: 16px;
  }
}

@media (min-width: 769px) {
  .sidebar-overlay {
    display: none;
  }
}
