/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
  }
  
  /* Container */
  .tool-container {
    max-width: 880px;
    margin: 2.5rem auto;
    padding: 2rem 2rem;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  }
  
  /* Header */
  .tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .tool-header h1 {
    font-size: 2.25rem;
    color: #212529;
    margin-bottom: 0.5rem;
  }
  
  .tool-header p {
    color: #555;
    font-size: 1.05rem;
  }
  
  /* Form Controls */
  form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    font-weight: 600;
    color: #222;
    margin-bottom: 0.4rem;
  }
  
  .form-group input[type="text"],
  .form-group select {
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #f9fafb;
    transition: border 0.2s;
  }
  
  .form-group input[type="text"]:focus,
  .form-group select:focus {
    outline: none;
    border-color: #007bff;
  }
  
  .form-group input[type="range"] {
    width: 100%;
  }
  
  .form-group input[type="color"] {
    width: 50px;
    height: 35px;
    border: none;
    padding: 0;
    background: none;
  }
  
  .hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.2rem;
  }
  
  /* Grid Form Layout */
  .form-row {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  
  .form-row .form-group {
    flex: 1;
    min-width: 220px;
  }
  
  /* Buttons */
  button {
    cursor: pointer;
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
    border-radius: 10px;
    border: none;
    transition: background 0.3s ease;
  }
  
  .btn-primary {
    background-color: #007bff;
    color: #fff;
  }
  
  .btn-primary:hover {
    background-color: #0056b3;
  }
  
  .btn-secondary {
    background-color: #e9ecef;
    color: #333;
  }
  
  .btn-secondary:hover {
    background-color: #dee2e6;
  }
  
  /* Barcode Preview */
  .barcode-preview {
    text-align: center;
    margin-top: 2.5rem;
  }
  
  .barcode-placeholder {
    padding: 2rem;
    border: 2px dashed #ccc;
    border-radius: 12px;
    color: #999;
    background-color: #fafafa;
  }
  
  .barcode-image-container img {
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .barcode-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* How it Works */
  .how-it-works {
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
  }
  
  .how-it-works h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .step {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    background-color: #007bff;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
  }
  
  .info-box {
    margin-top: 2rem;
    background-color: #f8f9fa;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid #007bff;
    border-radius: 10px;
  }
  
  .info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .info-box ul {
    padding-left: 1.2rem;
  }
  
  /* Message Box */
  .message-box {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  
  .message-box.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
  }
  
  .message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
  }
  
  .message-box.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
    .tool-container {
      padding: 1.5rem 1rem;
      margin: 1.5rem;
    }
  
    .form-row {
      flex-direction: column;
    }
  
    .barcode-actions {
      flex-direction: column;
      align-items: center;
    }
  
    .tool-header h1 {
      font-size: 1.8rem;
    }
  }
  