// 🎨 Estilos específicos do ProfileComponent
.profile-container {
  
  // 🏷️ Badges de nível de acesso
  :deep(.access-level-badge) {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    
    &.admin { 
      background: #f44336; 
      color: white; 
      box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
    }
    
    &.manager { 
      background: #ff9800; 
      color: white; 
      box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    }
    
    &.operator { 
      background: #4caf50; 
      color: white; 
      box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    }
    
    &.viewer { 
      background: #2196f3; 
      color: white; 
      box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    }
  }

  // 📊 Barra de progresso do score de segurança
  :deep(.security-score-progress) {
    &.success { 
      --progress-color: #4caf50; 
      --progress-bg: rgba(76, 175, 80, 0.1);
    }
    
    &.warning { 
      --progress-color: #ff9800; 
      --progress-bg: rgba(255, 152, 0, 0.1);
    }
    
    &.danger { 
      --progress-color: #f44336; 
      --progress-bg: rgba(244, 67, 54, 0.1);
    }
  }

  // 🔔 Alertas contextuais
  :deep(.profile-alerts) {
    margin-top: 1rem;
    
    .alert {
      padding: 0.75rem;
      border-radius: 0.375rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      font-size: 0.875rem;
      transition: all 0.2s ease-in-out;
      
      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      }
      
      &.warning {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        color: #856404;
        
        i {
          color: #ff9800;
        }
      }
      
      &.info {
        background: #d1ecf1;
        border: 1px solid #bee5eb;
        color: #0c5460;
        
        i {
          color: #2196f3;
        }
      }
      
      &.success {
        background: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
        
        i {
          color: #4caf50;
        }
      }
    }
  }

  // 🎯 Ações rápidas do SideCard
  :deep(.sidecard-actions) {
    .action-button {
      transition: all 0.2s ease-in-out;
      
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }
      
      &.primary {
        background: var(--idt-primary, #FFC82E);
        color: #000;
        
        &:hover {
          background: #e6b429;
        }
      }
      
      &.accent {
        background: #2196f3;
        color: white;
        
        &:hover {
          background: #1976d2;
        }
      }
      
      &.basic {
        background: #6c757d;
        color: white;
        
        &:hover {
          background: #5a6268;
        }
      }
    }
  }

  // 📱 Responsividade mobile
  @media (max-width: 768px) {
    :deep(.access-level-badge) {
      font-size: 0.625rem;
      padding: 0.125rem 0.375rem;
    }
    
    :deep(.profile-alerts) {
      .alert {
        padding: 0.5rem;
        font-size: 0.75rem;
      }
    }
  }

  // 🎨 Animações suaves
  :deep(.form-field) {
    transition: all 0.2s ease-in-out;
    
    &:focus-within {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
  }

  // 🖼️ Área de upload de foto
  :deep(.image-upload-area) {
    border: 2px dashed #ddd;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    
    &:hover {
      border-color: var(--idt-primary, #FFC82E);
      background: rgba(255, 200, 46, 0.05);
    }
    
    &.has-image {
      border-style: solid;
      border-color: #4caf50;
      background: rgba(76, 175, 80, 0.05);
    }
  }

  // 🔐 Campos de senha com indicador visual
  :deep(.password-field) {
    position: relative;
    
    &.has-value::after {
      content: '🔒';
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.875rem;
      opacity: 0.6;
    }
  }

  // 📊 Indicadores visuais de dados
  :deep(.data-indicator) {
    &.high-value {
      color: #4caf50;
      font-weight: 600;
    }
    
    &.medium-value {
      color: #ff9800;
      font-weight: 900;
    }
    
    &.low-value {
      color: #f44336;
      font-weight: 400;
    }
  }
}

// 🔄 Loading States
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 2rem;
  
  .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: #6c757d;
    
    i {
      font-size: 2rem;
      color: var(--idt-primary, #FFC82E);
      animation: spin 1s linear infinite;
    }
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
