/* One Rep Max Calculator Styles */
.orm-hero {
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.orm-result-section {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem; /* Reduced gap */
}

/* Size adjustments */
.orm-hero.orm-size-small,
.orm-hero.orm-size-medium {
  max-width: 600px;
}

.orm-hero.orm-size-large {
  max-width: 800px;
}

.orm-hero.orm-size-full {
  max-width: 100%;
}

.orm-calculator {
  background: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.orm-result {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: var(--button-text-color);
  margin-bottom: 1rem; /* Reduced gap */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Add subtle animation to result background */
.orm-result::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

.orm-result h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--button-text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.orm-result-value {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulseValue 0.5s ease-out;
}

@keyframes pulseValue {
  0% {
      transform: scale(0.95);
      opacity: 0.5;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* Tables Grid */
.orm-tables-grid {
  display: grid;
  gap: 1rem; /* Reduced gap */
  margin-top: 1rem; /* Reduced gap */
}

/* Grid layout based on calculator size */
.orm-size-full .orm-tables-grid,
.orm-size-large .orm-tables-grid {
  grid-template-columns: repeat(2, 1fr);
}

.orm-size-medium .orm-tables-grid,
.orm-size-small .orm-tables-grid {
  grid-template-columns: 1fr;
}

.orm-table-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.orm-table-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.orm-table-header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--button-text-color);
  padding: 1rem;
}

.orm-table-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.orm-table {
  width: 100%;
  border-collapse: collapse;
}

.orm-table thead {
  background: var(--background-color);
}

.orm-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

.orm-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-color);
}

.orm-table tbody tr:hover {
  background: var(--background-color);
}

/* Form Styles */
.orm-form {
  text-align: left;
}

.orm-input-group {
  margin-bottom: 1.25rem;
}

.orm-input-group label {
  display: block;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.orm-input-with-select {
  display: flex;
  gap: 0.5rem;
}

.orm-input-with-select input[type="number"],
.orm-input-with-select select,
.orm-input-wrapper input[type="number"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-color);
  background: white;
  transition: all 0.2s;
}

.orm-input-with-select input[type="number"]:focus,
.orm-input-with-select select:focus,
.orm-input-wrapper input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

.orm-input-with-select select {
  width: 120px;
  cursor: pointer;
}

.orm-input-hint {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.75rem;
}

.orm-settings {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--background-color);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.orm-settings-header button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}

.orm-settings-header button:hover {
  color: var(--secondary-color);
}

.orm-setting-group {
  margin-top: 1rem;
}

.orm-setting-group h4 {
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.orm-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.orm-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-color);
  cursor: pointer;
}

.orm-radio-group input[type="radio"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.orm-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.orm-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.orm-calculate {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--button-text-color);
}

.orm-clear {
  background: var(--secondary-color);
  color: var(--button-text-color);
}

.orm-calculate:hover,
.orm-clear:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .orm-hero {
      margin: 1rem auto;
  }

  .orm-tables-grid {
      grid-template-columns: 1fr !important;
  }

  .orm-calculator {
      padding: 1.25rem;
  }

  .orm-input-with-select {
      flex-direction: column;
  }

  .orm-input-with-select select {
      width: 100%;
  }

  .orm-buttons {
      flex-direction: column;
  }

  .orm-buttons button {
      width: 100%;
  }

  .orm-table-wrapper {
      overflow-x: auto;
  }

  .orm-table {
      min-width: 500px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.orm-result-section {
  animation: fadeIn 0.3s ease-in;
}