/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


/* Custom application styles below */

/* Design System - Orange Primary Color Palette */
.bg-orange-primary {
  background-color: #ea580c; /* orange-600 - PRIMARY brand color */
}

.bg-orange-primary-dark {
  background-color: #c2410c; /* orange-700 - Hover/accent */
}

/* Auth Layout - Orange Gradient Background - MAXIMUM SPECIFICITY */
.auth-hero-gradient,
.auth-hero-gradient.hidden,
.auth-hero-gradient.lg\:flex,
.auth-hero-gradient.lg\:w-1\/2,
.auth-hero-gradient.relative,
div.hidden.lg\:flex.lg\:w-1\/2.relative.auth-hero-gradient {
  background-color: #ea580c !important;
  background-image: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-image: -webkit-linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-image: -moz-linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-image: -o-linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  background-image: -ms-linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
}

/* Nuclear option - override any possible Tailwind class */
body div.hidden.lg\:flex.lg\:w-1\/2.relative.auth-hero-gradient,
body .min-h-screen .hidden.lg\:flex.lg\:w-1\/2.relative.auth-hero-gradient {
  background: #ea580c !important;
  background-color: #ea580c !important;
  background-image: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
}

.auth-hero-content {
  position: relative;
  z-index: 10;
}

/* Button Styles */
.btn-primary {
  background-color: #ea580c;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #c2410c;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

/* Form Styles */
.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

/* Form Validation States */
.form-input-error {
  border-color: #ef4444;
}

.form-input-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input-success {
  border-color: #10b981;
}

.form-input-success:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-label-error {
  color: #b91c1c;
}

.field-error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Radio Button Styles */
.form-radio {
  height: 1rem;
  width: 1rem;
  border: 1px solid #d1d5db;
}

/* Exercise Set Styles */
.exercise-set-item {
  transition: all 0.2s ease-in-out;
}

.exercise-set-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom Set Type Selectors */
.set-type-option input:checked + .set-type-card {
  border-color: #f97316;
  background-color: #fff7ed;
}

.set-type-option input:checked + .set-type-card .check-indicator {
  background-color: #f97316;
  border-color: #f97316;
  color: white;
}

.set-type-option input:checked + .set-type-card .check-indicator::after {
  content: '✓';
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.set-type-card {
  transition: all 0.2s ease-in-out;
}

.set-type-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Exercise Instructions Styling */
.exercise-instructions h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.exercise-instructions h3:first-child {
  margin-top: 0;
}

.exercise-instructions ol {
  counter-reset: exercise-step;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.exercise-instructions ol li {
  counter-increment: exercise-step;
  margin-bottom: 0.5rem;
  padding-left: 2rem;
  position: relative;
  line-height: 1.5;
}

.exercise-instructions ol li::before {
  content: counter(exercise-step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: #ea580c;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.exercise-instructions img {
  display: block;
  margin: 1rem auto;
  max-width: 150px;
  max-height: 100px;
  width: auto;
  height: auto;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
}

.exercise-instructions img:hover {
  transform: scale(1.05);
  border-color: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

/* Custom Mode Selectors */
.mode-option input:checked + .mode-card {
  border-color: #f97316;
  background-color: #fff7ed;
}

.mode-option input:checked + .mode-card .mode-indicator {
  background-color: #f97316;
  border-color: #f97316;
}

.mode-option input:checked + .mode-card .mode-indicator::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mode-card {
  transition: all 0.2s ease-in-out;
}

.mode-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Set Number Badge */
.set-number {
  font-variant-numeric: tabular-nums;
}

/* Enhanced animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.animate-slide-in-up {
  animation: slideInUp 0.3s ease-out;
}

.animate-slide-out-left {
  animation: slideOutLeft 0.3s ease-out;
}

/* Focus improvements */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Gradient backgrounds */
.gradient-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.gradient-orange:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .mode-option .mode-card {
    padding: 0.75rem;
  }
  
  .mode-option .mode-card span {
    font-size: 0.875rem;
  }
  
  .set-type-card {
    padding: 0.75rem;
  }
  
  .set-type-card span {
    font-size: 0.875rem;
  }
}

/* Action Text / Trix Editor Styles */
trix-editor {
  min-height: 200px !important; /* Dobro da altura padrão (~100px) */
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

trix-editor:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Trix Toolbar Customization */
trix-toolbar {
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
  background-color: #f9fafb;
  padding: 0.5rem;
}

trix-toolbar .trix-button-group {
  margin-bottom: 0;
}

trix-toolbar .trix-button {
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  background-color: white;
  color: #374151;
  padding: 0.25rem 0.5rem;
  margin-right: 0.25rem;
  transition: all 0.2s;
}

trix-toolbar .trix-button:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

trix-toolbar .trix-button.trix-active {
  background-color: #f97316;
  border-color: #f97316;
  color: white;
}

/* Container for rich text fields */
.rich-text-container {
  margin-bottom: 1rem;
}

.rich-text-container trix-editor {
  border-radius: 0 0 0.375rem 0.375rem;
}

/* Enhanced Native Select Styling */
select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

select.focused {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Mobile optimizations for select */
@media (max-width: 640px) {
  select {
    min-height: 44px;
    font-size: 16px;
  }
}

