/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - Trust & Care Theme */
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #60A5FA;
  --secondary: #10B981;
  --secondary-dark: #059669;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  
  /* Status colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Neutrals */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 70px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--spacing-md);
  gap: var(--spacing-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav {
  display: none;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}

.lang-btn {
  padding: 0.375rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-size: 0.875rem;
}

.lang-btn:hover {
  color: var(--gray-900);
}

.lang-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0 0.75rem 0;
  border-top: 1px solid var(--gray-200);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s;
  flex: 1;
  max-width: 80px;
}

.bottom-nav-item-icon {
  font-size: 1.5rem;
  transition: all 0.2s;
}

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

.bottom-nav-item.active .bottom-nav-item-icon {
  transform: scale(1.15);
}

.bottom-nav-item:active {
  transform: scale(0.95);
}

.main {
  padding: var(--spacing-lg) 0;
  min-height: calc(100vh - 200px);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
}

.card-content {
  color: var(--gray-700);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.form-label .required {
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: var(--spacing-xs);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: var(--spacing-xs);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
}

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

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

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

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-dark);
}

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

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

.btn-block {
  width: 100%;
}

.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
  font-size: 0.9rem;
}

.alert-info {
  background: #EFF6FF;
  border-color: var(--info);
  color: #1E40AF;
}

.alert-success {
  background: #F0FDF4;
  border-color: var(--success);
  color: #166534;
}

.alert-warning {
  background: #FFFBEB;
  border-color: var(--warning);
  color: #92400E;
}

.alert-error {
  background: #FEF2F2;
  border-color: var(--error);
  color: #991B1B;
}

.notice-banner {
  padding: var(--spacing-md);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.notice-banner.info { background: #DBEAFE; color: #1E40AF; }
.notice-banner.success { background: #D1FAE5; color: #166534; }
.notice-banner.warning { background: #FEF3C7; color: #92400E; }
.notice-banner.error { background: #FEE2E2; color: #991B1B; }

.badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-pending {
  background: #FEF3C7;
  color: #92400E;
}

.badge-confirmed {
  background: #D1FAE5;
  color: #166534;
}

.badge-rejected {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-available {
  background: #D1FAE5;
  color: #166534;
}

.badge-limited {
  background: #FEF3C7;
  color: #92400E;
}

.badge-unavailable {
  background: #FEE2E2;
  color: #991B1B;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-cols-2 {
  grid-template-columns: 1fr;
}

.grid-cols-3 {
  grid-template-columns: 1fr;
}

.spinner {
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: var(--spacing-xl) auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  text-align: center;
  color: var(--gray-600);
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.empty-state-text {
  font-size: 1rem;
  font-weight: 500;
}

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  text-align: center;
}

.footer-content {
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .card {
    padding: var(--spacing-lg);
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
  
  .bottom-nav {
    display: none;
  }
  
  .nav {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
  }
  
  .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
  }
  
  .nav-link:hover {
    background: var(--gray-100);
    color: var(--primary);
  }
  
  .nav-link.active {
    background: var(--primary);
    color: white;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    font-size: 2rem;
  }
  
  .header-content {
    padding: var(--spacing-md) 0;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1.125rem;
  }
  
  .main {
    padding: var(--spacing-2xl) 0;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .btn {
    width: auto;
  }
  
  .card {
    padding: var(--spacing-xl);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }
}
