/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f0; /* light gray background similar to Tailwind's bg-gray-50 */
    margin: 0;
    min-height: 100vh;
    color: #374151; /* Tailwind's gray-700 */
    background-image: url(https://mmssb.github.io/QReator.com/assets/land2.jpg);
}

/* Container */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* 16px */
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 2.25rem; /* 4xl */
    font-weight: 700;
    color: #1f2937; /* gray-800 */
    margin-bottom: 0.5rem;
}

.icon {
    margin-right: 0.5rem;
}

.subtitle {
    color: #4b5563; /* gray-600 */
    font-weight: 500;
}

/* Main grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 96rem; /* 6xl */
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Card */
.card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Form elements */
.label {
    display: block;
    color: #374151; /* gray-700 */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.select,
.input,
.input-file,
.range-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: #374151;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select:focus,
.input:focus,
.input-file:focus,
.range-input:focus {
    outline: none;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Space between elements vertically */
.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Section titles */
.section-title {
    font-size: 1.125rem; /* lg */
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

/* Checkbox styles */
.checkbox-group,
.checkbox-group-inline {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.checkbox-label-inline {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    margin-left: 0.25rem;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6; /* blue-500 */
    cursor: pointer;
}

/* Color inputs */
.color-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-input {
    width: 100%;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.color-input-half {
    width: 50%;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

/* Color grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Gradient colors hidden by default */
.gradient-colors.hidden {
    display: none;
}

/* Preview container */
.preview-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb; /* gray-50 */
    border-radius: 0.5rem;
}

/* Barcode */
#barcode {
    max-width: 100%;
    height: auto;
}

/* Button */
.button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #2563eb; /* blue-600 */
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #1d4ed8; /* blue-700 */
}

.button .icon {
    margin-right: 0.5rem;
}

/* Size value text */
.size-value {
    font-size: 0.875rem;
    color: #4b5563; /* gray-600 */
    margin-top: 0.25rem;
}



/* overlay */

#mms-overlay {
    position: fixed;
    bottom: 20px;
    right: -200px; /* Start off-screen */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px 15px 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
    border: 1px solid #e0e0e0;
    animation: slideIn 1s forwards 2s; /* Animation will start after 2 seconds */
  }
  
  @keyframes slideIn {
    to {
      right: 20px;
    }
  }



  /* #mms-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px 15px 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
  }
   */
  #mms-overlay:hover {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  
  .mms-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
  }
  
  #mms-overlay a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    font-weight: 500;
  }
  
  #mms-overlay a:hover {
    color: #000;
  }