
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 24rem;
}

.w-1-3 {
  width: 33.333333%;
}

/* Spacing */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-2 { margin-bottom: 0.5rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Typography */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-gray-700 { color: #374151; }
.text-white { color: #fff; }
.text-black { color: #000; }

/* Flexbox */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between;gap: 1rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Background and borders */
.bg-white { background-color: #fff; }
.bg-orange-500 { background-color: #f97316; }
.bg-red-500 { background-color: #ef4444; }

.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.custom-shadow { box-shadow: 0px 10px 30px -10px rgba(0,0,0,0.8); }

/* Interactive elements */
.hover-bg-orange-600:hover { background-color: #ea580c; }

/* Form elements */
select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  width: 100%;
}

input[type="submit"] {
  width: 100%;
  background-color: #f97316;
  color: white;
  padding: 0.5rem 0;
  margin-top: 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 600;
}

input[type="submit"]:hover {
  background-color: #ea580c;
}

/* Form Container Styles */
.form-container {
  background-color: #fff;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0px 10px 30px -10px rgba(0,0,0,0.8);
}

.form-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  display: block;
  margin-bottom: 0.25rem;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Mobile-first responsive card layout */
.responsive-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.card-box {
  width: calc(50% - 0.5rem); /* Two cards per row with gap */
  height: 145px;
  background-color: #F2F2F2;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  text-align: center;
}

.custom-card-header {
  background-color: #dc2626;
  color: white;
  padding: 0.75rem 0.5rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-content {
  padding: 1rem 0;
}

.card-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: #dc2626;
}

/* Number display sections */
.number-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.number-label {
  color: #000;
  font-weight: 500;
  font-size: 1.25rem;
  text-align: center;
  margin: 0;
}

.number-badge {
  display: inline-block;
  background-color: #ef4444;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.description {
  color: #374151;
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

/* Headings */
.main-heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Error message */
.error-message {
  font-weight: bold;
  font-size: 0.875rem;
  color: #dc2626;
  padding: 0 1rem;
  border-radius: 0.25rem;
  position: relative;
  text-align: center;
  margin-top: 0.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.no-data-message {
  color: #ef4444;
  text-align: center;
  margin-top: 1rem;
}

/* Responsive design */
@media (min-width: 768px) {
  .card-box {
    width: 192px;
  }
  
  .responsive-container {
   justify-content: center;
   gap: 2rem;
  }
  
  .custom-card-header {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .card-box {
    height: 130px;
  }
  
  .custom-card-header {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  .form-container {
    padding: 1rem;
  }
  
  .number-display {
    gap: 0.25rem;
  }
  
  .w-1-3 {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 360px) {
  .card-box {
    height: 120px;
  }
  
  .custom-card-header {
    font-size: 0.75rem;
  }
  
  .card-number {
    font-size: 1rem;
  }
  
  .number-label {
    font-size: 1.125rem;
  }
  
  .number-badge {
    font-size: 1.125rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Additional utilities */
.object-cover { object-fit: cover; }
.relative { position: relative; }
.inline-block { display: inline-block; }
.block { display: block; }