/* Algemene instellingen */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

/* Header */
header {
  background-color: #808080; /* Grijze kleur */
  color: white;
  padding: 1rem 2rem;
  text-align: center;
}

header .logo h1 {
  margin: 0;
}

table .totaal {
  font-weight: bold;
}
table .totaalheader {
  font-weight: bold;
  text-align: right;
}

/* Navigatie */
nav {
  background-color: #505050; /* Donkerder grijs */
  color: white;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Content */
main {
  padding: 2rem;
  background: white;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-height: calc(100vh - 200px);
}

section {
  margin-bottom: 2rem;
}

h2 {
  border-bottom: 2px solid #808080;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

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

table thead {
  background-color: #808080;
  color: white;
}

table th, table td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
}

table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #808080;
  color: white;
}




/* Algemene printinstellingen */
@media print {
  @page {
      size: landscape; /* Liggende oriëntatie */
      margin: 1cm; /* Optioneel: Stel marges in */
  }
  button, header, nav, footer {
    display: none;
  }

  .no-print{
    display: none;
  }

  body {
      font-family: Arial, sans-serif;
      font-size: 12px;
      color: black;
  }

  /* Tabelstijl voor printen */
  table {
      width: 100%;
      border-collapse: collapse;
  }

  table, th, td {
      border: 1px solid black;
  }

  th, td {
      padding: 8px;
      text-align: left;
  }

}

/* tooltip admin page */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

/* Ordering System Specific Styles */

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #808080;
  color: #fff;
}

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

.btn-secondary {
  background-color: #95a5a6;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-danger {
  background-color: #e74c3c;
  color: #fff;
}

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

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #808080;
  box-shadow: 0 0 5px rgba(128, 128, 128, 0.3);
}

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

.form-group small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 5px;
}

/* Messages */
.error-message,
.success-message {
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  border-left: 4px solid;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.success-message {
  background-color: #e8e8e8;
  color: #2c2c2c;
  border-left-color: #808080;
}

/* Welcome section */
.welcome-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #808080 0%, #505050 100%);
  color: #fff;
  border-radius: 8px;
}

.welcome-section h2 {
  color: #fff;
  margin-bottom: 10px;
}

/* Customer info */
.customer-info {
  background: #e8e8e8;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  border-left: 4px solid #808080;
}

.customer-info h3 {
  color: #505050;
  margin-bottom: 10px;
}

/* Order sections */
.current-order,
.no-order {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 25px;
}

.order-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Guest options */
.guest-options {
  margin: 30px 0;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.option-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.option-card h4 {
  color: #2c3e50;
  margin-bottom: 15px;
}

/* Product sections */
.product-showcase,
.products-section {
  margin: 30px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card,
.product-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  transition: box-shadow 0.3s ease;
}

.product-card:hover,
.product-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card h4,
.product-item h4 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.product-card .price,
.product-item .price {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin-top: 10px;
}

/* Product ordering */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.product-info {
  flex: 1;
  min-width: 250px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quantity-input {
  width: 80px;
  text-align: center;
}

.total-pieces {
  font-weight: bold;
  color: #666;
  min-width: 80px;
}

/* Delivery options */
.delivery-section {
  margin: 30px 0;
}

.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  background-color: #f8f9fa;
  border-color: #808080;
}

.radio-option input[type="radio"] {
  width: auto;
  margin-top: 2px;
}

.radio-option span {
  font-weight: bold;
  margin-bottom: 5px;
}

.radio-option small {
  color: #666;
  display: block;
  margin-top: 5px;
}

/* Order summary */
.order-summary {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  margin: 25px 0;
}

.order-summary h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

#order-total {
  text-align: right;
  font-size: 18px;
}

/* Info section */
.info-section {
  margin: 30px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.info-item h4 {
  color: #505050;
  margin-bottom: 10px;
}

/* Form actions */
.form-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

/* Verkoper section */
.verkoper-section {
  margin: 25px 0;
}

.verkoper-section .form-group {
  max-width: 400px;
}

.verkoper-section .form-group input[type="number"] {
  width: 350px !important;
  max-width: 350px;
}

/* Remove spinner arrows from number input in verkoper field */
.verkoper-section .form-group input[type="number"]::-webkit-outer-spin-button,
.verkoper-section .form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.verkoper-section .form-group input[type="number"] {
  -moz-appearance: textfield;
}

/* Captcha */
.captcha-section {
  background: #f0f0f0;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  padding: 20px;
  margin: 25px 0;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.captcha input[type="number"] {
  width: 100px;
}

/* Login/Register links */
.register-link,
.login-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.register-link a,
.login-link a {
  color: #505050;
  text-decoration: none;
}

.register-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

/* Guest info */
.guest-info {
  background: #f0f0f0;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  padding: 20px;
  margin: 25px 0;
  text-align: center;
}

.guest-info a {
  color: #505050;
  font-weight: bold;
}

/* No products/orders */
.no-products,
.no-order {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 25px 0;
}

/* Login required */
.login-required {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 25px 0;
}

/* Responsive design */
@media (max-width: 768px) {
  main {
    margin: 10px;
    padding: 15px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .product-item {
    flex-direction: column;
    align-items: stretch;
  }
  
  .quantity-selector {
    justify-content: center;
    margin-top: 15px;
  }
  
  .option-cards {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions,
  .actions {
    justify-content: center;
  }
  
  .order-actions {
    justify-content: center;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav li {
    margin: 5px 0;
  }
  
  .delivery-options {
    gap: 10px;
  }
  
  .radio-option {
    padding: 12px;
  }
}


/* Links als knoppen */
a.button, a.btn, a.link-button {
    background-color: #808080;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
    text-decoration: none;     /* Geen onderstreping */
    display: inline-block;     /* Zodat padding werkt zoals bij knoppen */
}

a.button:hover,
a.btn:hover,
a.link-button:hover {
    background-color: #505050;
}
