/* ========== Global Styles ========== */

body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: system-ui, sans-serif;
    font-size: 15px;
    margin: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  h2 {
    font-weight: 600;
  }

  /* ========== Layout ========== */

  .layout-wrapper {
    display: flex;
    gap: 1rem;
    height: calc(100vh - 120px); /* Platz für Header */
  }

  .left-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .right-pane {
    width: 50%;
    display: flex;
    flex-direction: column;
  }

  /* ========== Karten & Panels ========== */

  .card {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
  }

  .card-header,
  .card-footer {
    background-color: #fff;
    font-weight: 500;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
  }

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

  .card-body {
    overflow-y: auto;
    box-shadow: inset 0 -1px 6px rgba(0, 0, 0, 0.03);
  }

  /* ========== Scrollbereiche ========== */

  .artikel-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
  }

  .konfig-scroll {
    flex: 1;
    overflow-y: auto;
  }

  .card-body::-webkit-scrollbar {
    width: 6px;
  }
  .card-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
  }

  /* ========== Filter & Kategorien ========== */

  .filter-label {
    font-weight: 600;
    font-size: 0.9rem;
  }

  .category-buttons .btn {
    margin: 0.2rem;
    transition: all 0.2s;
  }
  .category-buttons .btn.active {
    background-color: #0d6efd;
    color: white;
  }

  /* ========== Inputs & Buttons ========== */

  input, select, button {
    border-radius: 8px !important;
    transition: all 0.2s ease;
  }

  input:focus, select:focus {
    box-shadow: 0 0 5px rgba(100, 149, 237, 0.5);
    border-color: #6495ED;
  }

  button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  button:active {
    transform: translateY(0);
    box-shadow: none;
  }

  /* ========== Tabelle ========== */

  .table th, .table td {
    vertical-align: middle;
  }

  .table-striped tbody tr:hover {
    background-color: #eef2f7;
    transition: background-color 0.2s;
  }

  /* ========== Dropzone & Werkzeugleiste ========== */

  .toolbar-fixed {
    padding: 0.5rem;
    background: #fff;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  }

  .toolbar-fixed button,
  .toolbar-fixed #dropzone {
    height: 40px;
  }

  #dropzone {
    flex: 1;
    background-color: #f8f9fa;
    border: 2px dashed #ced4da;
    border-radius: 6px;
    text-align: center;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #dropzone:hover {
    background-color: #f1f3f5;
    outline: 1px dashed #adb5bd;
  }

  #dropzone.dragover {
    background-color: #e0f0ff !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
  }

  /* ========== Sonstiges ========== */

  img {
    border-radius: 8px;
  }

  .form-check-label {
    cursor: pointer;
  }

  /* ========== Rundungen für Karten-Innenbereiche ========== */

/* Header & Footer: Obere/untere Ecken abrunden */
.card > .card-header:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .card > .card-footer:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  /* Falls innerhalb .card-body z. B. Tabellen o. Ä. mit Rand sind */
  .card-body,
  .card-header,
  .card-footer {
    border-radius: 0; /* Verhindert doppelte Rundungen */
  }

  /* Dropzone ebenfalls abgerundet */
  #dropzone {
    border-radius: 8px;
  }


  /* ========== Hover-Effekte ========== */
  .hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.3);
  }

  /* Hervorhebung der Artikelliste beim Hover */
  .artikel-row:hover {
    background-color: #eef2f7;
    cursor: pointer;
  }

/* Angebot-Übersicht: Artikelnummern optional einblendbar */
#offerSummary .offer-artnr {
  display: none;
}
#offerSummary.show-artnr .offer-artnr {
  display: inline;
}

/* Status-Management Styles */
.status-action-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.status-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.status-action-card.border-success {
    border-color: #198754 !important;
    background-color: #f8f9fa;
}

.status-action-card.border-primary {
    border-color: #0d6efd !important;
}

/* Status-Badge Animationen */
.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Status-spezifische Karten-Ränder */
.card.border-info { border-left: 4px solid #0dcaf0; }
.card.border-warning { border-left: 4px solid #ffc107; }
.card.border-success { border-left: 4px solid #198754; }
.card.border-primary { border-left: 4px solid #0d6efd; }
.card.border-secondary { border-left: 4px solid #6c757d; }
.card.border-dark { border-left: 4px solid #212529; }

/* Alert-spezifische Styles */
.alert .alert-heading {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Status-Grid */
@media (max-width: 768px) {
    .status-action-card .card-body {
        padding: 1rem !important;
    }

    .status-action-card h6 {
        font-size: 0.9rem;
    }
}