@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: #1f2a33;
  background: #f5f7fb;
}

a {
  color: #1565c0;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 100px;
}

.nav {
  background: #0f172a;
  color: #fff;
  padding: 12px 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5f5;
  margin-left: 16px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #1f2a33;
  color: #ffffff;
  border-color: #1e293b;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile a {
  display: block;
  padding: 8px 12px;
  color: #cbd5f5;
  font-size: 14px;
}

.nav-mobile.active {
  display: block;
}

.brand-text {
  letter-spacing: 1px;
  font-size: 18px;
}

.brand-bike {
  color: #ffffff;
}

.brand-ino {
  color: #1565c0;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1565c0;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-secondary {
  background: #64748b;
}

.btn-danger {
  background: #d32f2f;
}

.compact-card {
  padding: 12px;
}

.compact-card h2 {
  margin-top: 0;
  font-size: 18px;
}

.compact-card .form-group {
  margin-bottom: 8px;
}

.compact-card input,
.compact-card select,
.compact-card textarea {
  font-size: 13px;
  padding: 6px 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: #f8fafc;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
}

@media (max-width: 767px) {
  table {
    min-width: 520px;
  }
  th, td {
    padding: 8px;
    font-size: 13px;
  }
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  font-size: 14px;
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
}

.muted {
  color: #64748b;
  font-size: 13px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
  padding: 10px 16px;
  z-index: 10;
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.bottom-nav a {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  background: #1565c0;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.bottom-nav a:hover {
  background: #0f5bb0;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
  .container {
    padding-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }
  .brand-text {
    font-size: 20px;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .brand-meta {
    display: none;
  }
  .nav {
    padding: 10px 16px;
  }
  .nav-inner {
    flex-wrap: nowrap;
  }
  .nav-mobile a {
    padding: 10px 16px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: min(900px, 92vw);
  height: min(85vh, 720px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: #0f172a;
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Permissions Checkboxes */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.permission-item:hover {
  background: #f1f5f9;
  border-color: #cbd5f5;
}

.permission-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1565c0;
  cursor: pointer;
}.permission-item span {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}