/* Bootstrap Fallback CSS - Basic styles when CDN fails */

/* Basic reset and typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg, #333);
  background-color: var(--bg, #fff);
}

/* Basic container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Basic grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1 0 0%;
  padding: 0 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

@media (max-width: 768px) {
  .col-6, .col-4, .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Basic navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: var(--surface-glass, rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass, rgba(0, 0, 0, 0.1));
  padding: 10px 0;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--fg, #333);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-link {
  color: var(--fg, #333);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: var(--surface-muted, rgba(0, 0, 0, 0.1));
}

/* Basic buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--brand, #007AFF);
  color: white;
  border-color: var(--brand, #007AFF);
}

.btn-primary:hover {
  background-color: var(--brand-600, #0056CC);
  border-color: var(--brand-600, #0056CC);
}

.btn-secondary {
  background-color: var(--surface-muted, rgba(0, 0, 0, 0.1));
  color: var(--fg, #333);
  border-color: var(--border-glass, rgba(0, 0, 0, 0.1));
}

.btn-secondary:hover {
  background-color: var(--surface, rgba(0, 0, 0, 0.2));
}

/* Basic forms */
.form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg, #333);
  background-color: var(--surface, #fff);
  border: 1px solid var(--border-glass, rgba(0, 0, 0, 0.1));
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand, #007AFF);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Basic alerts */
.alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.alert-success {
  background-color: rgba(52, 199, 89, 0.1);
  border-color: rgba(52, 199, 89, 0.3);
  color: #1d8348;
}

.alert-danger {
  background-color: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.3);
  color: #d32f2f;
}

.alert-warning {
  background-color: rgba(255, 149, 0, 0.1);
  border-color: rgba(255, 149, 0, 0.3);
  color: #f57c00;
}

.alert-info {
  background-color: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  color: #1976d2;
}

/* Basic utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

/* Responsive utilities */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .container {
    padding: 0 10px;
  }
}

