/**
 * Estilos do AdvancedStatusPanel
 */

.advanced-status-panel {
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(30, 30, 40, 0.98) 100%);
  border: 2px solid #4A9EFF;
  border-radius: 8px;
  padding: 0.75rem;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(74, 158, 255, 0.2);
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  backdrop-filter: blur(10px);
  overflow: visible;
  min-height: fit-content;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(74, 158, 255, 0.3);
}

.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #4A9EFF;
  text-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.panel-badge {
  background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(74, 158, 255, 0.3);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.status-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  overflow: visible;
  min-height: fit-content;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.status-card:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(74, 158, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.card-header h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.status-badge {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
}

/* Progress Bar */
.progress-bar-container {
  margin: 0.4rem 0;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.progress-bar-value {
  font-weight: 600;
  color: #4A9EFF;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

/* Card Details */
.card-details {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 500;
}

.metric-value {
  font-weight: 600;
  font-size: 0.7rem;
}

/* Eyes Grid */
.eyes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.eye-status {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.4rem;
  text-align: center;
  transition: all 0.3s ease;
}

.eye-status.open {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.1);
}

.eye-status.closed {
  border-color: rgba(244, 67, 54, 0.5);
  background: rgba(244, 67, 54, 0.1);
}

.eye-icon {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.eye-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.15rem;
}

.eye-state {
  font-size: 0.7rem;
  font-weight: 600;
}

.blink-indicator {
  margin-top: 0.3rem;
  padding: 0.3rem;
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 4px;
  text-align: center;
  font-size: 0.7rem;
  color: #FFC107;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.blink-icon {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Classes de status */
.success { 
  color: #4CAF50; 
  font-weight: 600;
}

.warning { 
  color: #FF9800; 
  font-weight: 600;
}

.error { 
  color: #F44336; 
  font-weight: 600;
}

.excellent { 
  color: #4CAF50; 
  font-weight: 600;
}

.good { 
  color: #4CAF50; 
  font-weight: 600;
}

.medium { 
  color: #FF9800; 
  font-weight: 600;
}

.poor { 
  color: #F44336; 
  font-weight: 600;
}

.score {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scrollbar personalizada */
.advanced-status-panel::-webkit-scrollbar {
  width: 6px;
}

.advanced-status-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.advanced-status-panel::-webkit-scrollbar-thumb {
  background: rgba(74, 158, 255, 0.5);
  border-radius: 3px;
}

.advanced-status-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 158, 255, 0.7);
}

/* Responsividade */
@media only screen and (max-width: 1200px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .advanced-status-panel {
    padding: 1.25rem;
  }
  
  .panel-title {
    font-size: 1.2rem;
  }
}

@media only screen and (max-width: 768px) {
  .advanced-status-panel {
    padding: 1rem;
  }
  
  .panel-title {
    font-size: 1.1rem;
  }
  
  .status-card {
    padding: 0.75rem;
  }
  
  .eyes-grid {
    grid-template-columns: 1fr;
  }
}

