/* Common utility styles for Better Choices Education */
/* These styles replace common inline style attributes throughout the application */

/* Width and sizing utilities */
.w-auto {
  width: auto !important;
}
.w-40 {
  width: 40% !important;
}
.max-w-150 {
  max-width: 150px !important;
}
.max-w-100 {
  max-width: 100px !important;
}
.max-height-400 {
  max-height: 400px !important;
}
.max-height-300 {
  max-height: 300px !important;
}

/* Display utilities */
.d-inline {
  display: inline !important;
}
.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}

/* Overflow utilities */
.overflow-y-auto {
  overflow-y: auto !important;
}

/* Video and media utilities */
.video-max-height-600 {
  max-height: 600px !important;
  object-fit: contain !important;
}

.play-button-overlay {
  width: 80px !important;
  height: 80px !important;
}

.play-icon-large {
  font-size: 2rem !important;
  margin-left: 4px !important;
}

/* Progress bar utilities */
.progress-25 {
  width: 25% !important;
}
.progress-50 {
  width: 50% !important;
}
.progress-75 {
  width: 75% !important;
}
.progress-90 {
  width: 90% !important;
}

/* Auto width and 1400px centered layout */
.w-1400px-auto {
  width: 1400px;
  margin: auto;
}

/* Display block with auto margin */
.d-block-mx-auto {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Common spacing utilities */
.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Position absolute at bottom right */
.position-absolute-bottom-right {
  position: absolute !important;
  bottom: 15px !important;
  right: 15px !important;
}

/* No text decoration */
.text-decoration-none {
  text-decoration: none !important;
}

/* Auto height and width with specific dimensions */
.size-auto-60px {
  height: 60px !important;
  width: auto !important;
}

/* Cursor utilities */
.cursor-pointer {
  cursor: pointer !important;
}
.login-input-left {
  border-radius: 25px 0 0 25px !important;
  padding: 15px 20px !important;
}

.login-button-right {
  border-radius: 0 25px 25px 0 !important;
  padding: 15px 25px !important;
  background: #6c757d !important;
  border-color: #6c757d !important;
}

/* Color background utilities */
.bg-primary-var {
  background-color: var(--color-primary) !important;
}
.bg-accent-var {
  background-color: var(--color-accent) !important;
}
.bg-background-var {
  background-color: var(--color-background) !important;
}
.bg-header-var {
  background-color: var(--color-header) !important;
}

/* Flash message styling */
.flash-message {
  margin: 0;
  padding-right: 3rem;
}

.flash-icon {
  margin-right: 8px;
}

.flash-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.flash-remove:hover {
  opacity: 1;
}

/* Password field toggle styling */
.password-fields-hidden {
  display: none !important;
}

.password-fields-visible {
  display: block !important;
}

/* Gmail alert styling */
.gmail-alert-hidden {
  display: none !important;
}

.gmail-alert-visible {
  display: block !important;
}

/* Form element spacing */
.form-row-spacing {
  margin-bottom: 1rem;
}

/* Scrollable content areas */
.scrollable-content {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
}

/* Modal and overlay utilities */
.lesson-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 2000;
}

.lesson-overlay.instruction {
  z-index: 2000;
}

.lesson-overlay.completion {
  z-index: 3000;
}

.lesson-modal-content {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
}

.lesson-flash-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: red;
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  z-index: 1000;
}

.lesson-video {
  display: none;
  margin: 0 auto;
  width: 75%;
}

.lesson-video.show {
  display: block;
}

/* Width utilities */
.w-15 {
  width: 15% !important;
}

.w-25 {
  width: 25% !important;
}

.w-40 {
  width: 40% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100px {
  width: 100px !important;
}

.w-150px {
  width: 150px !important;
}

.w-200px {
  width: 200px !important;
}

.w-300px {
  width: 300px !important;
}

.w-1200px {
  width: 1200px !important;
}

.w-1400px {
  width: 1400px !important;
}

/* Min-width utilities */
.min-w-100px {
  min-width: 100px !important;
}

.min-w-150px {
  min-width: 150px !important;
}

.min-w-180px {
  min-width: 180px !important;
}

.min-w-200px {
  min-width: 200px !important;
}

.min-w-250px {
  min-width: 250px !important;
}

/* Height utilities */
.h-15 {
  height: 15% !important;
}

.h-40 {
  height: 40% !important;
}

.h-60px {
  height: 60px !important;
}

.h-100px {
  height: 100px !important;
}

.h-500px {
  height: 500px !important;
}

/* Size utilities for percentages */
.size-15 {
  width: 15% !important;
  height: 15% !important;
}

.size-19 {
  width: 19% !important;
  height: 19% !important;
}

.size-40 {
  width: 40% !important;
  height: 40% !important;
}

.size-100px {
  width: 100px !important;
  height: 100px !important;
}

.size-15 {
  width: 15% !important;
  height: 15% !important;
}

/* Min-width utilities */
.min-w-150px {
  min-width: 150px !important;
}

.min-w-200px {
  min-width: 200px !important;
}

/* Min-height utilities */
.min-h-80vh {
  min-height: 80vh !important;
}

.min-h-120px {
  min-height: 120px !important;
}

/* Positioning utilities */
.pos-absolute-bottom-right {
  position: absolute !important;
  bottom: 15px !important;
  right: 15px !important;
}

/* Border utilities */
.border-none {
  border: none !important;
}

/* Text decoration utilities */
.text-decoration-none {
  text-decoration: none !important;
}

/* Auto margin utilities */
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

/* Centered content layout */
.centered-layout {
  min-height: 80vh;
}

.centered-content {
  max-width: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Large icon styling */
.icon-large {
  font-size: 4rem !important;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-max-height-300 {
    max-height: 300px !important;
  }

  .mobile-w-60 {
    width: 60px !important;
  }

  .mobile-h-60 {
    height: 60px !important;
  }

  .mobile-w-1400px {
    width: 100% !important;
  }
}
