/* Ammunation - Los Santos Gun Club CSS */

@font-face {
  font-family: "RoughSplash";
  src: url("../fonts/Rough_Splash.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background-color: rgb(26, 29, 32);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-logo a {
  font-family: "RoughSplash", cursive;
  font-size: 2rem;
  color: rgb(255, 24, 24);
  text-decoration: none;
  font-weight: bold;
}

.navbar-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.navbar-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-links a:hover {
  background-color: rgb(255, 24, 24);
  color: #ffffff;
}

.navbar-logout .btn-logout {
  background-color: rgb(255, 24, 24);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-logout .btn-logout:hover {
  background-color: #cc0000;
}

/* Main Content */
.main-content {
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Login Page - Modal Design */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, rgb(26, 29, 32) 0%, rgb(40, 44, 52) 100%);
  padding: 2rem;
}

.login-form {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-title {
  font-family: "RoughSplash", cursive;
  font-size: 2.5rem;
  color: rgb(255, 24, 24);
  margin-bottom: 2rem;
  text-align: center;
}

.order-container {
  flex: 1;
  max-width: 600px;
}

.order-form {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  text-align: center;
}

.order-form h2 {
  font-family: "RoughSplash", cursive;
  font-size: 2rem;
  color: rgb(255, 24, 24);
  margin-bottom: 2rem;
  text-align: center;
}

.order-form h3 {
  color: #ffffff;
  margin: 1.5rem 0 1rem 0;
  text-align: left;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 500;
}

/* Einheitliche Styles für alle Formularfelder */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #333;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: "Roboto", Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgb(255, 24, 24);
  box-shadow: 0 0 0 2px rgba(255, 24, 24, 0.2);
}

/* Spezielle Styles für Textarea */
.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
}

/* Spezielle Styles für Select */
.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.form-group select option {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 0.5rem;
}

/* Checkbox und Radio Button Styles */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.form-group input[type="file"] {
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px dashed #333;
}

.form-group input[type="file"]:hover {
  border-color: rgb(255, 24, 24);
}

/* Image Preview */
.image-preview {
  margin-top: 0.5rem;
  max-width: 200px;
  max-height: 200px;
  border-radius: 5px;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-full {
  grid-column: 1 / -1;
}

/* Order Items Grid */
.order-items {
  margin-top: 2rem;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.items-grid .form-group {
  margin-bottom: 1rem;
}

.items-grid input[type="number"] {
  text-align: center;
  font-weight: bold;
}

/* Buttons */
.btn {
  background-color: rgb(255, 24, 24);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: "Roboto", Arial, sans-serif;
}

.btn:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-primary {
  background-color: rgb(255, 24, 24);
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 1rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  text-align: left;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid #28a745;
  color: #28a745;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid #dc3545;
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .login-container {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cashier-layout {
    grid-template-columns: 1fr;
  }

  .login-container {
    padding: 1rem;
  }

  .login-form {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .login-title {
    font-size: 2rem;
  }

  .main-content {
    padding: 1rem;
  }
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card h3 {
  color: rgb(255, 24, 24);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Schwarzes Brett */
.blackboard-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.blackboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.note-card {
  background: linear-gradient(135deg, #f4f4f4 0%, #e0e0e0 100%);
  color: #333;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.note-card:nth-child(even) {
  transform: rotate(1deg);
}

.note-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.note-content {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.note-actions {
  display: flex;
  gap: 0.5rem;
}

/* Produkte */
.products-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 200px;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-radius: 5px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  text-align: center;
}

.product-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.product-category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: rgb(255, 24, 24);
}

/* Kasse */
.cashier-container {
  padding: 2rem;
}

.cashier-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  height: calc(100vh - 200px);
}

.products-section {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  overflow-y: auto;
}

.cart-section {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid #333;
}

.cart-total {
  border-top: 2px solid rgb(255, 24, 24);
  padding-top: 1rem;
  margin-top: auto;
}

/* Kunden */
.customers-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.customers-table th,
.customers-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.customers-table th {
  background-color: rgba(255, 24, 24, 0.2);
  font-weight: bold;
}

.customers-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mitarbeiter */
.employees-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 2rem 0;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.employees-header,
.employees-table,
.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.employees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.employees-table th,
.employees-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.employees-table th {
  background-color: rgba(255, 24, 24, 0.2);
  font-weight: bold;
}

.employees-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.9);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.close:hover {
  color: rgb(255, 24, 24);
}

/* Search */
.search-container {
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 2px solid #333;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: rgb(255, 24, 24);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.d-flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: rgb(255, 24, 24);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Kunden-Suchergebnisse */
.customer-results {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #1a1a1a;
  margin-top: 0.5rem;
}

.customer-result {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.customer-result:hover {
  background-color: rgba(255, 24, 24, 0.1);
}

.customer-result:last-child {
  border-bottom: none;
}

/* Seriennummern-Modal */
.serial-number-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.serial-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.serial-inputs input {
  padding: 0.5rem;
  border: 1px solid #333;
  border-radius: 3px;
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Text Utilities */
.text-success {
  color: #28a745;
}

.text-warning {
  color: #ffc107;
}

/* Lagerbestand-Anzeige */
.product-stock-info {
  margin-top: 0.5rem;
}

.stock-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: bold;
}

.stock-badge.normal-stock {
  background-color: #28a745;
  color: white;
}

.stock-badge.low-stock {
  background-color: #ffc107;
  color: black;
}

/* Lagerbestand-Seite spezifische Styles */
.inventory-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.inventory-table-container {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
}

.inventory-table th,
.inventory-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.inventory-table th {
  background-color: rgba(0, 0, 0, 0.5);
  font-weight: bold;
  color: rgb(255, 24, 24);
}

.inventory-product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.stock-amount {
  font-weight: bold;
  font-size: 1.1em;
}

.stock-amount.low-stock {
  color: #ff4444;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: bold;
}

.status-badge.low {
  background-color: #ff4444;
  color: white;
}

.status-badge.normal {
  background-color: #44ff44;
  color: black;
}

.status-badge.high {
  background-color: #4444ff;
  color: white;
}

.inventory-table .low-stock {
  background-color: rgba(64, 64, 64, 0.3);
}

.low-stock {
  background-color: rgba(255, 68, 68, 0.1);
}

.form-select {
  padding: 0.75rem;
  border: 2px solid #333;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .inventory-header {
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-table {
    font-size: 0.9em;
  }

  .inventory-table th,
  .inventory-table td {
    padding: 0.5rem;
  }
}
