/* app-equipos.css | CualityX App: Equipos (Notas Style) */

/* --- Variables (Safe Defaults) --- */
#win-equipos {
  --eq-bg-sidebar: rgba(22, 22, 30, 0.6);
  --eq-bg-main: rgba(22, 22, 30, 0.3);
  --eq-border: rgba(255, 255, 255, 0.06);
  --eq-text-main: #ffffff;
  --eq-text-muted: rgba(255, 255, 255, 0.5);
  --eq-accent: #f59e0b; /* Amber 500 */
  --eq-accent-hover: #d97706;
  --eq-accent-light: rgba(245, 158, 11, 0.15);
  
  font-family: 'Inter', system-ui, sans-serif;
}

/* --- Sidebar Nav --- */
.eq-nav-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.5;
  margin-top: 16px;
  margin-bottom: 8px;
  padding-left: 12px;
  letter-spacing: 0.05em;
}

.eq-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.eq-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.eq-nav-item.active {
  background: var(--eq-accent-light);
  color: var(--eq-accent);
  font-weight: 600;
}

.eq-nav-divider {
  height: 1px;
  background: var(--eq-border);
  margin: 12px 0;
}

.eq-nav-icon {
  font-size: 16px;
  opacity: 0.9;
}

.eq-badge {
  margin-left: auto;
  font-size: 11px;
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* --- Buttons --- */
.eq-btn-primary {
  background: linear-gradient(135deg, #fcd681, #f59e0b);
  border: none;
  color: #111;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-size: 13px;
  width: 100%;
}
.eq-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.eq-btn-primary:active {
  transform: translateY(0);
}
.eq-btn-primary.small {
  width: auto;
  padding: 6px 12px;
  font-size: 12px;
}

.eq-btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}
.eq-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}
.eq-btn-secondary.small {
  width: auto;
  padding: 6px 12px;
  font-size: 12px;
  text-align: center;
}

.eq-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.eq-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}
.eq-btn-danger:disabled {
   opacity: 0.5;
   cursor: not-allowed;
   pointer-events: none;
}
.eq-btn-danger.small {
  padding: 6px 12px;
  font-size: 12px;
}

.eq-btn-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  font-size: 16px; cursor: pointer;
  border-radius: 8px; color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.eq-btn-icon:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.eq-btn-icon.small {
   width: 28px; height: 28px; font-size: 14px;
}

.eq-btn-text {
   background: none; border: none;
   color: var(--eq-accent);
   font-size: 12px; font-weight: 600;
   cursor: pointer; padding: 4px 8px;
   border-radius: 6px;
}
.eq-btn-text:hover {
   background: var(--eq-accent-light);
}

/* --- Cards & Grid --- */
.eq-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}
.eq-card:hover {
   border-color: rgba(255,255,255,0.1);
   background: rgba(255,255,255,0.03);
}

.eq-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.eq-card-head h3 {
  margin: 0; font-size: 14px; font-weight: 700; opacity: 0.9;
}

/* Stat Card specific */
.eq-stat-card {
   padding: 16px;
   display: flex; align-items: center; gap: 16px;
}
.eq-stat-icon {
   width: 48px; height: 48px;
   border-radius: 12px;
   display: flex; align-items: center; justify-content: center;
   font-size: 24px;
}
.eq-stat-val {
   font-size: 20px; font-weight: 800; color: #fff;
}
.eq-stat-label {
   font-size: 12px; opacity: 0.6;
}

/* --- Lists & Items --- */
.eq-list-item {
   padding: 12px 16px;
   border-bottom: 1px solid rgba(255,255,255,0.04);
   display: flex; align-items: center; gap: 12px;
   transition: background 0.15s;
   cursor: pointer;
}
.eq-list-item:hover {
   background: rgba(255,255,255,0.03);
}
.eq-list-item:last-child { border-bottom: none; }

.eq-item-avatar {
   width: 36px; height: 36px;
   border-radius: 50%;
   background: rgba(255,255,255,0.1);
   display: flex; align-items: center; justify-content: center;
   font-weight: 700; font-size: 13px; color: #fff;
}

/* --- Inputs --- */
.eq-input, .eq-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box; /* Important fix */
}
.eq-input:focus, .eq-select:focus {
  border-color: var(--eq-accent);
  background: rgba(255,255,255,0.08);
}
.eq-select option {
   background: #222;
}

/* --- Views & Transitions --- */
.eq-view {
  display: none;
  width: 100%; height: 100%;
  flex-direction: column;
}
.eq-view.active {
  display: flex;
  animation: eq-fade-in 0.3s ease-out;
}

@keyframes eq-fade-in {
   from { opacity: 0; transform: translateY(10px); }
   to { opacity: 1; transform: translateY(0); }
}

/* --- Status Indicators --- */
.eq-status-indicator {
   padding: 8px 12px; width: 100%;
   border-radius: 8px; text-align: center;
   font-weight: 700; font-size: 12px;
   transition: all 0.3s;
   border: 1px solid transparent;
}
.eq-status-indicator.closed {
   background: rgba(239, 68, 68, 0.15);
   border-color: rgba(239, 68, 68, 0.25);
   color: #f87171;
}
.eq-status-indicator.open {
   background: rgba(34, 197, 94, 0.15);
   border-color: rgba(34, 197, 94, 0.25);
   color: #4ade80;
   box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

/* --- Modal --- */
.eq-modal {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.eq-modal.show { display: flex; }

.eq-modal-content {
   background: #1e1e28;
   border: 1px solid rgba(255,255,255,0.1);
   border-radius: 16px;
   box-shadow: 0 25px 50px rgba(0,0,0,0.5);
   overflow: hidden;
   animation: eq-scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes eq-scale-in {
   from { transform: scale(0.9); opacity: 0; }
   to { transform: scale(1); opacity: 1; }
}

.eq-modal-header {
   padding: 16px 24px;
   border-bottom: 1px solid rgba(255,255,255,0.06);
   display: flex; justify-content: space-between; align-items: center;
}
.eq-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.eq-modal-close {
   background: transparent; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: 0.5;
}
.eq-modal-close:hover { opacity: 1; }

.eq-modal-footer {
   padding: 16px 24px;
   border-top: 1px solid rgba(255,255,255,0.06);
   display: flex; gap: 12px;
}

/* --- Activity List Item --- */
.eq-act-item {
   background: rgba(255,255,255,0.02);
   border: 1px solid rgba(255,255,255,0.04);
   border-radius: 8px;
   padding: 12px;
   margin-bottom: 8px;
   display: flex; align-items: flex-start; gap: 12px;
}
.eq-act-prio-dot {
   width: 8px; height: 8px; border-radius: 50%; margin-top: 6px;
}
.eq-prio-high { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.eq-prio-medium { background: #f59e0b; }
.eq-prio-low { background: #3b82f6; }

.eq-label {
   display: block; font-size: 11px; font-weight: 700; opacity: 0.6; margin-bottom: 6px; letter-spacing: 0.05em;
}
