/* Modern Tire Selector Module CSS - Horizontal Layout */
.panel-module-tire-selector,
.journal-tire-selector {
  margin-bottom: 25px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  /*border: 1px solid rgba(255,255,255,0.18);*/
  border: 1px solid #263850;
  overflow: hidden;
  position: relative;
}

.panel-module-tire-selector::before,
.journal-tire-selector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /*background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);*/
}

.panel-module-tire-selector .panel-module-title,
.journal-tire-selector .panel-heading {
  padding: 20px 24px 15px 24px;
  /*background: transparent;*/
  background: #dd274e;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.panel-module-tire-selector .panel-module-title h3,
.journal-tire-selector .panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.panel-module-tire-selector .panel-module-content,
.journal-tire-selector .panel-body {
  padding: 20px 24px 24px 24px;
}

/* Horizontal Form Layout */
.tire-selector-form-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.panel-module-tire-selector .form-group,
.journal-tire-selector .form-group {
  margin-bottom: 0;
  position: relative;
  flex: 1;
  min-width: 140px;
}

.panel-module-tire-selector .form-group.button-group,
.journal-tire-selector .form-group.button-group {
  flex: 0 0 auto;
  min-width: 120px;
}

/* Custom Select Styling - Horizontal */
.panel-module-tire-selector .form-control,
.journal-tire-selector .form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #2d3748;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.panel-module-tire-selector .form-control:focus,
.journal-tire-selector .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.panel-module-tire-selector .form-control:hover,
.journal-tire-selector .form-control:hover {
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Modern Button - Horizontal */
.panel-module-tire-selector .btn-primary,
.journal-tire-selector .btn-primary {
  display: block;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.panel-module-tire-selector .btn-primary:hover,
.journal-tire-selector .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Mobile Responsive - Stack vertically on small screens */
@media (max-width: 767px) {
  .tire-selector-form-horizontal {
    flex-direction: column;
    gap: 16px;
  }
  
  .panel-module-tire-selector .form-group,
  .journal-tire-selector .form-group {
    min-width: 100%;
  }
  
  .panel-module-tire-selector .form-control,
  .journal-tire-selector .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Animation for form elements */
.panel-module-tire-selector .form-group,
.journal-tire-selector .form-group {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.panel-module-tire-selector .form-group:nth-child(1),
.journal-tire-selector .tire-selector-form-horizontal .form-group:nth-child(1) { animation-delay: 0.1s; }
.panel-module-tire-selector .form-group:nth-child(2),
.journal-tire-selector .tire-selector-form-horizontal .form-group:nth-child(2) { animation-delay: 0.2s; }
.panel-module-tire-selector .form-group:nth-child(3),
.journal-tire-selector .tire-selector-form-horizontal .form-group:nth-child(3) { animation-delay: 0.3s; }
.panel-module-tire-selector .form-group:nth-child(4),
.journal-tire-selector .tire-selector-form-horizontal .form-group:nth-child(4) { animation-delay: 0.4s; }
.panel-module-tire-selector .form-group:nth-child(5),
.journal-tire-selector .tire-selector-form-horizontal .form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}