:root {
    --background-primary: #1e1e1e;
    --background-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #0071e3;
    --border-radius: 10px;
    --spacing: 16px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
  
  body {
    background-color: var(--background-primary);
    color: var(--text-primary);
    padding: 20px;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  header {
    margin-bottom: 30px;
    text-align: center;
  }
   
    
  .card {
    background-color: var(--background-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing);
    margin-bottom: var(--spacing);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .form-group {
    margin-bottom: var(--spacing);
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  input[type="file"],
  button,
  select {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    border: none;
    font-size: 16px;
  }
  
  input[type="file"] {
    background-color: var(--background-primary);
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 10px;
  }
  
  select {
    background-color: var(--background-primary);
    color: var(--text-primary);
  }
  
  button {
    background-color: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
  }
  
  button:hover {
    background-color: #0077ff;
  }
  
  button:disabled {
    background-color: #666;
    cursor: not-allowed;
  }
  
  .color-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
  }
  
  .color-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .color-input {
    width: 40px;
    height: 40px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
  }
  
  .color-input::-webkit-color-swatch-wrapper {
    padding: 0;
  }
  
  .color-input::-webkit-color-swatch {
    border: none;
    border-radius: 5px;
  }
  
  .preview-container {
    max-height: 600px;
    overflow-y: auto;
    margin-top: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 10px;
  }
  
  .label-sheet {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    page-break-inside: avoid;
  }
  
  .label {
    width: 5cm;
    height: 3cm;
    border: 1px solid #ddd;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.2cm;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .label-type {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #000;
    margin-bottom: 0.2cm;
  }
  
  .label-id {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #000;
    margin-bottom: 0.1cm;
  }
  
  .label-address {
    font-size: 10px;
    text-align: center;
    color: #000;
    margin-bottom: 0.05cm;
  }
  
  .label-mode {
    font-size: 10px;
    text-align: center;
    color: #000;
    margin-bottom: 0.4cm; /* Espace augmenté pour éviter le chevauchement avec le liseré */
  }
  
  .label-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5cm;
  }
  
  .section-title {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
  }
  
  .logo-preview {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-top: 10px;
    background-color: white;
    border-radius: 5px;
  }
  
  .csv-debug {
    color: var(--text-secondary);
    background-color: var(--background-primary);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
  }
  
  .label-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0.3cm; /* Espace pour le liseré */
  }
  
  .img {
    width: 42%;
    height: 42%;
    float: left;

  }
  @media print {
    .label-sheet {
      page-break-after: always;
    }
  }