/* Street Bites Admin - Minimalistisk CSS */

/* Reset och grundläggande stilar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: #ffffff;
  color: #2c3e50;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Login-sida stilar */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  padding: 1.25rem;
}

.login-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 25rem;
  border: 1px solid #e9ecef;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo h1 {
  color: #017963;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.logo p {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Formulär stilar */
.login-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background-color: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #017963;
  box-shadow: 0 0 0 2px rgba(1, 121, 99, 0.25);
}

/* Knappar */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #017963;
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background-color: #015a4a;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  min-width: 4rem;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #1e7e34;
}

/* Felmeddelanden */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  border: 1px solid #f5c6cb;
  font-size: 0.9rem;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  border: 1px solid #c3e6cb;
  font-size: 0.9rem;
}

/* Login footer */
.login-footer {
  text-align: center;
  color: #6c757d;
  font-size: 0.75rem;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  color: #2c3e50;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e9ecef;
}

.nav-brand h1 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
  color: #017963;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: #495057;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.15s ease-in-out;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background-color: #ffc042;
  color: #2c3e50;
}

/* Hamburger-meny knapp */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 1.9rem;
  height: 1.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 1.6rem;
  height: 0.2rem;
  background-color: #017963;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger-open span:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.hamburger-open span:nth-child(2) {
  opacity: 0;
}

.hamburger-open span:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* Overlay för mobil-meny */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

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

/* Huvudinnehåll */
.main-content {
  padding: 1.5rem;
  max-width: 75rem;
  margin: 0 auto;
  background-color: #ffffff;
}

.dashboard-header {
  margin-bottom: 2rem;
  text-align: center;
}

.dashboard-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #017963;
  font-weight: 600;
}

.dashboard-header p {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Statistik kort */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e9ecef;
}

.stat-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

.stat-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #017963;
  font-weight: 600;
}

.stat-content p {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dashboard sektioner */
.dashboard-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
.section {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  max-width: 50rem;
}
.section2 {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  max-width: 50rem;
  margin: 0 auto;
}

.section h3 {
  margin-bottom: 1rem;
  color: #017963;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Beställningslista */
.orders-list {
  max-height: 25rem;
  overflow-y: auto;
}

.order-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-item:last-child {
  border-bottom: none;
}

.order-info h4 {
  margin-bottom: 0.25rem;
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 600;
}

.order-info p {
  color: #6c757d;
  font-size: 0.75rem;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pending {
  background-color: #ffc042;
  color: #2c3e50;
}

.status-processing {
  background-color: #017963;
  color: white;
}

.status-ready {
  background-color: #017963;
  color: white;
}

.status-completed {
  background-color: #e2e3e5;
  color: #383d41;
}

/* Snabbåtgärder */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-actions .btn {
  text-align: center;
}

/* Tabeller */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.table tr:hover {
  background-color: #f8f9fa;
}

/* Formulär */
.form {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: 1px solid #e9ecef;
}

.form h3 {
  margin-bottom: 1.25rem;
  color: #017963;
  font-size: 1.1rem;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row.full {
  grid-template-columns: 1fr;
}

/* Responsiv design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 17.5rem;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5rem 1.25rem 1.25rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    gap: 0;
  }

  .nav-menu-open {
    right: 0;
  }

  .nav-link {
    padding: 1rem 1.25rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    border-bottom: 1px solid #f8f9fa;
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  #logoutBtn {
    margin-top: 1.25rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  .main-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dashboard-sections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .dashboard-header h2 {
    font-size: 1.25rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .section {
    padding: 1.25rem;
  }
}

/* Tablet specifik styling */
@media (max-width: 1024px) and (min-width: 769px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .main-content {
    padding: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .dashboard-sections {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
  }
}

/* Menyhantering stilar */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-header h3 {
  margin: 0;
  color: #017963;
  font-size: 1.1rem;
  font-weight: 600;
}

.categories-list,
.menu-items-list {
  display: grid;
  gap: 1rem;
}

.category-card,
.menu-item-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: box-shadow 0.2s ease;
}

.category-card:hover,
.menu-item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-info,
.menu-item-info {
  flex: 1;
}

.category-info h4,
.menu-item-info h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
}

.category-info p,
.menu-item-info p {
  margin: 0 0 0.75rem 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.category-meta,
.menu-item-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.category-meta span,
.menu-item-meta span {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: #f8f9fa;
  color: #495057;
}

.status.active,
.status.available {
  background: #d4edda;
  color: #155724;
}

.status.inactive,
.status.unavailable {
  background: #f8d7da;
  color: #721c24;
}

.display-order {
  background: #e2e3e5;
  color: #383d41;
}

.price {
  background: #017963;
  color: white;
  font-weight: 600;
}

.category {
  background: #ffc042;
  color: #2c3e50;
}

.prep-time {
  background: #d1ecf1;
  color: #0c5460;
}

.popular {
  background: #fff3cd;
  color: #856404;
}

.menu-item-image {
  width: 20rem;
  height: 20rem;
  margin-right: 1rem;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image {
  color: #6c757d;
  font-size: 0.75rem;
  text-align: center;
}

.menu-item-status {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.allergens {
  background: #f8d7da;
  color: #721c24;
  font-size: 0.7rem;
}

.category-actions,
.menu-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Modal stilar */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 31.25rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  color: #017963;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #2c3e50;
}

.form {
  padding: 1.25rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e9ecef;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 0;
  padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.checkbox-label:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 0.5rem;
  margin: -0.5rem;
}

.form-group:has(.checkbox-label) {
  margin-bottom: 0.5rem;
}

/* Animationer */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiv design för menyhantering */
@media (max-width: 768px) {
  .section-header {
    gap: 0.75rem;
  }

  .category-card,
  .menu-item-card {
    flex-direction: column;
    gap: 1rem;
  }

  .category-actions,
  .menu-item-actions {
    width: 100%;
    justify-content: stretch;
  }

  .category-actions .btn,
  .menu-item-actions .btn {
    flex: 1;
  }

  .menu-item-image {
    width: 100%;
    height: 20rem;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* Under Construction Message Styles */
.construction-message {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
  animation: fadeIn 0.6s ease-in-out;
}

.construction-message h3 {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.construction-message p {
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsiv design för construction message */
@media (max-width: 768px) {
  .construction-message {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }

  .construction-message h3 {
    font-size: 1.3rem;
  }
}
