:root {
  /* Colors - Modern Medical/Tech Palette */
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --secondary: #06B6D4;
  --accent: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Layout Containers */
.app-container {
  max-width: 480px; /* Mobile focused */
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-main);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.user-greeting h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.user-greeting p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Cards & Components */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.card:active {
  transform: scale(0.98);
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hospital-info {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.hospital-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
}

.job-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.hospital-name {
  font-size: 13px;
  color: var(--text-muted);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

.tag.urgent {
  background: #FEE2E2;
  color: var(--danger);
}

.job-footer {
  margin-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.salary {
  font-weight: 700;
  color: var(--text-main);
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: var(--space-sm);
}

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

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

.btn-full {
  width: 100%;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: var(--space-sm) 0 calc(var(--space-sm) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  flex: 1;
}

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

/* Search Bar */
.search-container {
  padding: 0 var(--space-md) var(--space-md);
  background: var(--bg-card);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-main);
  font-size: 14px;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

/* Detail View */
.detail-header {
  position: relative;
  height: 200px;
  background: var(--primary);
  overflow: hidden;
}

.detail-content {
  background: var(--bg-main);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  margin-top: -30px;
  position: relative;
  padding: var(--space-xl) var(--space-md) 100px;
  flex: 1;
}

.detail-logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: absolute;
  top: -40px;
  left: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-md);
}

.job-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
}

/* Floating Action Button */
.floating-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: white;
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-md);
  z-index: 100;
}

/* Placeholders */
.placeholder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
}

.placeholder-icon {
  width: 20px;
  height: 20px;
  background: currentColor;
  opacity: 0.2;
}
