body{
    font-family: "Pyidaungsu", sans-serif;
}

@font-face {
  font-family: "Pyidaungsu";
  src: url("/static/fonts/Pyidaungsu-2.5.3_Regular.ttf") format("truetype");
  font-weight: normal;
}


label {
    margin-bottom: 8px;
}

h2{
    margin-bottom: 12px;
    font-weight: bold;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.section-title {
    font-size: 1.20rem;
    font-weight: 550;
    margin-bottom: 1rem;
    color: #065f46;
    border-bottom: 1px solid #377462;
    padding-bottom: 0.5rem;
}

.placeholderColor::placeholder {
    color: gray;
    font-size: 13px;
}



.IconsContainer {
    display: flex;
    justify-content: space-between;
}

.bgchangecls{
    background-color: rgb(242, 241, 240);
}

.submit-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem; /* same as mt-6 */
}

.submit-container label {
  width: 63%;
  display: inline-flex;
  align-items: center;
  text-align: justify;
  margin-bottom: 0;
}

.submit-container button {
  background-color: #16a34a; /* Tailwind green-600 */
  color: white;
  padding: 0.5rem 1rem; /* approx px-4 py-2 */
  border-radius: 0.375rem; /* rounded */
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.submit-container button:hover {
  background-color: #15803d; /* Tailwind green-700 */
}

@media (max-width: 768px) {
    .submit-container{
        margin-left: 25px;
    }

  .submit-container label {
    width: 100%;
    margin-bottom: 0.7rem;
  }

  .submit-container button {
    width: 100%;
    max-width: 14rem; /* approx max-w-xs */
  }
}

.borderBottom{
  border-bottom: 1px  rgb(94, 189, 131);
  border-style:inset;
  margin-top: 40px;
}

/* style.css (add these new styles) */

/* Styles for Certificate Images Preview */
#certificatePreviewContainer {
    display: flex; /* Use flexbox for horizontal alignment */
    flex-wrap: wrap; /* Allow images to wrap to the next line */
    gap: 5px; /* Space between images */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    transition: all 0.3s ease-in-out; /* Smooth transitions for resizing */
}

.certificate-preview-img {
    border: 1px solid #ccc;
    border-radius: 4px;
    object-fit: contain; /* Ensures the whole image is visible within its bounds */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.certificate-preview-img:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* New Style for the '+' button to add images */
.add-image-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    font-size: 3rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.add-image-icon:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: scale(1.05);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #certificatePreviewContainer {
        min-height: 80px; /* Adjust min-height for smaller screens */
        max-height: 150px; /* Adjust max-height for smaller screens */
    }

    .certificate-preview-img {
        /* Default size for mobile, can be overridden by JS for dynamic scaling */
        width: 80px;
        height: 80px;
    }
}

/* style.css (Update this section) */

/* style.css (Update this section) */

.loading-spinner {
    /* REMOVE: display: none; */ /* This line should be removed */
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    -webkit-animation: spin 0.8s ease-in-out infinite;
    margin-left: 0.5rem; /* Add some space between text and spinner */
    vertical-align: middle; /* Align with text */
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

/* Hide the button text when spinner is active (optional, but good for small buttons) */
.loading .submit-button-text {
    visibility: hidden;
    opacity: 0;
}
