:root {
  --primary: #8cc63e;
  --primary-hover: #6d9b32;
  --bg-light: #ffffff;
  --text-light: #ffffff;
  --panel-light: #266d7b;
  --border-light: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-light);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 100%;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: var(--panel-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-direction: column;
  text-align: center;
}

.logo-img {
  height: 80px;
  margin-right: 1rem;
}

.main-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #ffffff;
}

.subtitle {
  color: #ffffff;
  font-size: 0.9rem;
  margin: 0;
}

/* Main Content */
.main-content {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.panels-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .panels-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Panels */
.panel {
  background-color: var(--panel-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

/* Input Panel */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-field {
  display: flex;
  flex-direction: column;
}

.input-field label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.input-field input,
.input-field select {
  width: auto;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: var(--panel-light);
  color: var(--text-light);
  transition: var(--transition);
} 

.input-field select option{
  background-color: #ffffff;
  color: #000000;
}

.input-field input:focus,
.input-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(93, 92, 222, 0.2);
}

.input-field input::placeholder {
  color: #ffffff;
  opacity: 0.7;
}

.double-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.advanced-params {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
}

.advanced-params h3 {
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.input-field.small input {
  padding: 0.5rem;
  font-size: 0.875rem;
}

.partida-info {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  font-size: 0.875rem;
  color: #8cc63e;
}

/* Buttons */
.calculate-btn {
  width: 100%;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1.5rem;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.calculate-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Results Panel */
.empty-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  color: #ffffff;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Multiple Motors */
.multiple-motors {
  margin-top: 2rem;
}

.motors-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .motors-container {
    grid-template-columns: 1fr 1fr;
  }
}

.motors-list-container h3,
.total-sizing h3 {
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.total-sizing,
.motors-list-container {
  border: 1px solid;
  border-color: #8cc63e;
  border-radius: 15px;
  padding: 1rem;
}

.motors-list {
  /* max-height: 320px; */
  overflow-y: auto;
  padding: 0.5rem;
  background-color: #f9fafb;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.empty-message {
  text-align: center;
  padding: 0rem;
  color: #000000;
  font-size: 1.1rem;
}

.motors-buttons {
  display: flex;
  gap: 0.75rem;
}

.add-btn,
.clear-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.add-btn {
  background-color: #8cc63e;
  color: white;
}

.add-btn:hover {
  background-color: #6d9b32;
}

.clear-btn {
  background-color: #ff0000;
  color: white;
}

.clear-btn:hover {
  background-color: #850000;
}

/* Tech Info */
.tech-info {
  margin-top: 2rem;
  background: var(--panel-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #000000;
}

.info-card ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #000000;
}

.info-card li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.info-card li:before {
  content: "•";
  position: absolute;
  left: 0;
}

/* Results Styles */
.result-section {
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  /* border-left: 4px solid; */
  border-width: 1px 1px 1px 4px;
  border-style: solid;
}

.result-section h3 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.result-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* gap: 0.75rem; */
  font-size: 0.875rem;
}

.result-item {
  background-color: white;
  padding: 0.5rem;
  border-radius: 6px;
  margin: 0.75rem;
  color: #000000;
}

.result-label {
  color: #000000;
  font-size: 1.25rem;
  font-weight: bold;
}

.result-value {
  font-weight: 600;
  font-size: 1rem;
  color: #000000;
}

/* Specific result sections */
.motor-data {
  background-color: rgb(0 0 0 / 0%);
  border-color: #3b82f6;
}

.demand-analysis {
  background-color: rgb(0 0 0 / 0%);
  border-color: #f59e0b;
}

.final-result {
  background-color: rgb(0 0 0 / 0%);
  border: 2px solid #10b981;
}

.recommendations {
  background-color: rgb(0 0 0 / 0%);
  border-color: #8b5cf6;
  text-align: start;
}

/* Motor item in list */
.motor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid #eee;
}

.motor-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.motor-icon {
  font-size: 1.25rem;
}

.motor-details {
  font-size: 0.875rem;
}

.motor-name {
  font-weight: 500;
  color: #000000;
}

.motor-specs {
  color: #6b7280;
  font-size: 0.75rem;
}

.remove-motor {
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
}

.remove-motor:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.final-result {
  background: white;
  border: 3px solid var(--primary);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 16px;
}

.final-result-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  background: linear-gradient(135deg, #d6f5e5, #c0ffde);
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.384);
}

.result-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.8rem;
  text-align: center;
}
 .result-note{
  color: #000000;
  font-size: 0.8rem;
  font-weight: bold;
 }