/* ==========================================================================
   UTP AgroVision AI - Clean, Formal & Academic Design System
   Universidad Tecnológica del Perú (UTP)
   ========================================================================== */

:root {
  --utp-red: #C8102E;
  --utp-red-hover: #A60C24;
  --utp-red-light: #FFF1F2;
  --utp-red-border: #FECDD3;
  
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-subtle: #64748B;
}

/* Formal Clean Card */
.glass-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.glass-panel:hover {
  border-color: var(--border-medium);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Primary Formal Button */
.btn-primary {
  background-color: var(--utp-red);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.55rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.8125rem;
}

.btn-primary:hover {
  background-color: var(--utp-red-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Formal Button */
.btn-secondary {
  background: #FFFFFF;
  color: #334155;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  border-radius: 0.625rem;
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.8125rem;
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

/* Danger Button */
.btn-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  cursor: pointer;
  font-size: 0.8125rem;
}

.btn-danger:hover {
  background: #FEE2E2;
  border-color: #F87171;
  color: #7F1D1D;
}

/* Navigation Links */
.nav-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.nav-btn.active {
  color: #C8102E;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  font-weight: 700;
}

/* Badges */
.badge-healthy {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 0.2rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-defect {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
  padding: 0.2rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-utp {
  background: #FFF1F2;
  color: #C8102E;
  border: 1px solid #FECDD3;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Formal Dropzone */
.dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 0.875rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.dropzone:hover, .dropzone.dragover {
  border-color: #C8102E;
  background: #FFF1F2;
}

/* Form Controls */
.input-field {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  outline: none;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.input-field:focus {
  border-color: #C8102E;
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15);
  background: #FFFFFF;
}

/* Slider Controls */
input[type=range] {
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C8102E;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
